db_0132: Transitions in flow charts

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.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

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.

Exception

Diagonal transition lines in loop constructs.

Custom Parameter

Not Applicable

Example — Correct

The condition is positioned on a horizontal transition line and the condition action is on a vertical transition line.

Example — Incorrect

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 transition orientations in flow charts (Simulink Check)

Last Changed

R2020a

See Also

Introduced in R2020a