Writing S-Functions Previous page   Next Page
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


Previous page  ssGetPlacementGroup ssGetPWork Next page

© 1994-2005 The MathWorks, Inc.