| Contents | Index |
boolean_T ssIsSampleHit(SimStruct *S, int_T st_index, int_T tid)
The Boolean value true when the simulation is executing in the task represented by task ID tid. Otherwise, returns false.
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.
C, C++
See the S-function mixedmex.c used in sfcndemo_mixedmex.mdl.
ssIsContinuousTask, ssIsSpecialSampleHit

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |