Determine whether the sample time is hit
boolean_T ssIsSampleHit(SimStruct *S, int_T st_index, int_T tid)
SimStruct representing an S-Function block.
Index of the sample time.
The Boolean value
true when the simulation
is executing in the task represented by task ID
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
to a continuous task.