Stateflow | ![]() ![]() |
Processing Events
When an event occurs, it is processed from the top or root of the Stateflow diagram down through the hierarchy of the diagram. At each level in the hierarchy, any during
and on
event_name
actions for the active state are executed and completed and then a check for the existence of a valid explicit or implicit transition among the children of the state is conducted. The examples in this chapter demonstrate the top-down processing of events.
All events, with the exception of the output edge trigger to Simulink (see the following note), have the following execution in a Stateflow diagram:
send()
function.)
Note Output edge trigger event execution in Simulink is equivalent to toggling the value of an output data value between 1 and 0. It is not treated as a Stateflow event. See Defining Edge-Triggered Output Events. |
![]() | Sources for Stateflow Events | Executing a Chart | ![]() |