Stateflow    

Defining a Triggered Stateflow Block

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

Example: Triggered Stateflow Block

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.


 Defining the Stateflow Block Update Method Defining a Sampled Stateflow Block