Stateflow | ![]() ![]() |
Defining a Triggered Stateflow Block
These are essential conditions that define an edge-triggered Stateflow block:
Update method
(set in the Chart Properties dialog box) is set to Triggered or Inherited
. (See Specifying Chart Properties.)Input from Simulink
event defined and an edge-trigger type specified. (See Defining Input Events.)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 | ![]() |