Writing S-Functions    
ssGetPortBasedSampleTimeBlockIsTriggered

Determine whether a block that uses port-based sample times resides in a triggered subsystem.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

Description

Returns TRUE if S uses port-based sample times and resides in a triggered subsystem. Use this macro in mdlOutputs and mdlUpdate to decode whether to use the block's triggered or non-triggered algorithms to compute its states and outputs.

Languages

C


  ssGetPlacementGroup ssGetPWork