Documentation Center

  • Trial Software
  • Product Updates


Allow an S-function with port-based sample times to operate in a triggered subsystem


Allows an S-function that uses port-based sample times to operate in a triggered subsystem. During sample time propagation, use the macro ssSampleAndOffsetAreTriggered to determine if the sample and offset times correspond to the block being in a triggered subsystem. If the block is triggered, all port sample times must be either triggered or constant. See Configuring Port-Based Sample Times for Use in Triggered Subsystems for more information.


See sfun_port_triggered.csfun_port_triggered.c, the source file for the sfcndemo_port_triggeredsfcndemo_port_triggered example, for an example.

Was this topic helpful?