Set the period of a sample time
time_T ssSetSampleTime(SimStruct *S, int_T st_index, time_T period)
SimStruct representing an S-Function block.
Index of the sample time whose period is to be set.
Period of the sample time specified by
time_T sample time value specified by
Use this macro in
mdlInitializeSampleTimes to specify the period of the sample
st_index starts at 0. See Setting Sample Times and Offsets for more
ssSetOffsetTime if the sample
time has an associated offset.
See the following S-functions for examples that use this function: