| Contents | Index |
boolean_T ssGetPortBasedSampleTimeBlockIsTriggered(SimStruct *S)
The Boolean value true if S uses port-based sample times and resides in a triggered subsystem. Otherwise, returns false.
Use this macro in mdlOutputs and mdlUpdate to decode whether to use the block's triggered or nontriggered algorithms to compute its states and outputs.
Note This macro returns a valid result only after sample time propagation. Thus, you cannot use it in mdlSetInputPortSampleTime and mdlSetOutputPortSampleTime to determine whether a port's sample time is triggered. Use ssSampleAndOffsetAreTriggered instead. |
C, C++
See the S-function sfun_port_triggered.c used in sfcndemo_port_triggered.mdl.

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 |