Stateflow | ![]() ![]() |
Transitions to and from Substates
The following example shows transitions to and from exclusive (OR) substates.
This Stateflow diagram shows a transition from one OR substate to another OR substate: the transition from Waiting.Ready
to Orange.
The transition to the state In_motion
is valid when state Waiting
.Ready
is active and the event Selection_made
occurs, providing that the variable select
equals 1. This transition defines an explicit exit from the Waiting.Ready
state and an implicit exit from the Waiting
superstate. On the destination side, this transition defines an implicit entry
into the Orange
superstate and an explicit entry
into the Orange.In_motion
substate.
See Transitioning from a Substate to a Substate with Events Example for more information on the semantics of this notation.
![]() | Transitions to and from Exclusive (OR) Superstates | Self-Loop Transitions | ![]() |