| Stateflow | ![]() |
Event Actions in a Superstate Example
The following example demonstrates the use of event actions in a superstate:
Initially the Stateflow diagram is asleep. State A.A1 is active. Event E_three occurs and awakens the Stateflow diagram. Event E_three is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram:
E_three. There is no valid transition.
A during actions (durA()) execute and complete.
A executes and completes the on event E_three action (A_one).
A checks its children for valid transitions. There are no valid transitions.
A1 during actions (durA1()) execute and complete.
This sequence completes the execution of this Stateflow diagram associated with event E_three.
| Backtracking Behavior in Flow Graphs Example | Parallel (AND) State Examples | ![]() |