Writing S-Functions | ![]() ![]() |
Determine whether the sample time is hit.
Syntax
Arguments
S
SimStruct representing an S-Function block.
st_index
Index of the sample time.
Description
Use in mdlOutputs
or mdlUpdate
when your S-function has multiple sample times to determine the task your S-function is executing in. You should not use this in single-rate S-functions or for an st_index
corresponding to a continuous task.
Languages
See Also
ssIsContinuousTask, ssIsSpecialSampleHit
![]() | ssIsMinorTimeStep | ssIsSpecialSampleHit | ![]() |