Writing S-Functions    
ssIsSampleHit

Determine if sample is hit.

Syntax

Arguments
S
   SimStruct representing an S-function block

st_index
   Index of the sample time

tid
   task ID

Description

Use in mdlOutputs or mdlUpdate when your S-function has multiple sample times to determine what task your S-function is executing in. This should not be used in single rate S-functions or for an st_index corresponding to a continuous task.

Languages

C

See Also
ssIsContinuousTask, ssIsSpecialSampleHit


 ssIsMinorTimeStep ssIsSpecialSampleHit