db_0132: Transitions in flow charts
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a, b
JMAAB — a, b
MATLAB Versions
All
Rule
Sub ID a
Transition actions shall not be used in flow charts.
Not Applicable
Transition actions are used.
Sub ID b
In a flow chart, the condition shall be positioned on a horizontal transition line and the condition action shall be positioned on a vertical transition line.
Diagonal transition lines in loop constructs.
Not Applicable
The condition is positioned on a horizontal transition line and the condition action is on a vertical transition line.
The condition is positioned on a vertical transition line and the condition action is on a horizontal transition line.
Rationale
Sub ID a:
The transition action in a flow chart is not executed.
Sub ID b:
Consistent positioning of conditions and condition actions improves readability.
Verification
Model Advisor check: Check transitions in Stateflow Flow charts (Simulink Check)
Last Changed
R2020a
See Also
Transition Between Operating Modes (Stateflow)
Version History
Introduced in R2020a