Writing S-Functions | ![]() ![]() |
Syntax
ssIsSpecialSampleHit(SimStruct *S, sti1, sti2, tid)
Arguments
S
SimStruct representing an S-function block
Description
Returns true if a sample hit has occurred at sti1 and a sample hit has also occurred at sti2 in the same time step. You can used this macro in mdlUpdate
and mdlOutputs
to ensure the validity of data shared by multiple tasks running at different rates. For more information, see Synchronizing Multirate S-Function Blocks.
Languages
See Also
ssIsSampleHit
![]() | ssIsSampleHit | ssIsVariableStepSolver | ![]() |