Created
April 27, 2012 21:08
-
-
Save chitchcock/2513236 to your computer and use it in GitHub Desktop.
mdlInitializeSampleTimes for S-Function blocks that can inherit sample time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MDL_INITIALIZE_SAMPLE_TIMES | |
static void mdlInitializeSampleTimes(SimStruct *S) | |
{ | |
ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME); | |
ssSetOffsetTime(S, 0, 0.0); | |
ssSetModelReferenceSampleTimeInheritanceRule(S, | |
USE_DEFAULT_FOR_DISCRETE_INHERITANCE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment