Determine whether the sample time is hit
boolean_T ssIsSpecialSampleHit(SimStruct *S, int_T sti1, int_T sti2, int_T tid)
The Boolean value true if a sample hit has occurred at sti1 and a sample hit has also occurred at sti2 in the same time step. Otherwise, returns false.
Use 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.