Stateflow | ![]() ![]() |
Transitions to and from Junctions
This example shows transitions to and from a connective junction.
This is a Stateflow diagram of a soda machine. The Stateflow diagram is called when the external event Selection_made
occurs. The Stateflow diagram awakens with the Waiting
state active. The Waiting
state is a common source state. When the event Selection_made
occurs, the Stateflow diagram transitions from the Waiting
state to one of the other states based on the value of the variable select
. One transition is drawn from the Waiting
state to the connective junction. Four additional transitions are drawn from the connective junction to the four possible destination states.
See Transitions from a Common Source to Multiple Destinations Example for more information on the semantics of this notation.
![]() | Transitions to and from Exclusive (OR) States | Transitions to and from Exclusive (OR) Superstates | ![]() |