| Contents | Index |
boolean_T ssSampleAndOffsetAreTriggered(real_T st, real_T ot)
The Boolean value true if both st and ot are equal to INHERITED_SAMPLE_TIME. Otherwise, returns false.
The Simulink engine sets the sample time and offset pairs of a block or its ports (for port-based sample times) to INHERITED_SAMPLE_TIME if the block resides in a triggered subsystem. By invoking this macro on its sample time/offset pairs, an S-function can determine whether it resides in a triggered subsystem.
C, C++
See the S-function sfun_port_triggered.c used in sfcndemo_port_triggered.mdl.
ssSampleAndOffsetAreTriggeredOrAsync

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 |