Stateflow    

Defining a Triggered Stateflow Block

These are essential conditions that define an edge-triggered Stateflow block:

Triggered Stateflow Block Example

A Pulse Generator block connected to the trigger port of the Stateflow block is an example of an edge-triggered Stateflow block.

The Input from Simulink event has a Rising Edge trigger type. If more than one Input from Simulink event is defined, the sample times are determined by Simulink to be consistent with various rates of all the incoming signals. The outputs of a triggered Stateflow block are held after the execution of the block.


  Implementing Interfaces in Stateflow to Simulink Defining a Sampled Stateflow Block