Stateflow    

Valid Transitions

In most cases, a transition is valid when the source state of the transition is active and the transition label is valid. Default transitions are slightly different because there is no source state. Validity of a default transition to a substate is evaluated when there is a transition to its superstate, assuming the superstate is active. This labeling criterion applies to both default transitions and general case transitions. The following are possible combinations of valid transition labels.

Transition Label
Is Valid If...
Event only
That event occurs
Event and condition
That event occurs and the condition is true
Condition only
Any event occurs and the condition is true
Action only
Any event occurs
Not specified
Any event occurs


  Transition Label Notation Transition Connections