ssGetPortBasedSampleTimeBlockIsTriggered - Determine whether a block that uses port-based sample times resides in a triggered subsystem
Syntax
boolean_T ssGetPortBasedSampleTimeBlockIsTriggered(SimStruct *S)
Arguments
- S
SimStruct representing an S-Function block.
Returns
The Boolean value true if S uses
port-based sample times and resides in a triggered subsystem. Otherwise,
returns false.
Description
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.
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_port_triggered.c used
in sfcndemo_port_triggered.mdl.
See Also
ssSampleAndOffsetAreTriggered
 | ssGetPlacementGroup | | ssGetPWork |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit