Main Content

jc_0734: Number of state action types

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

State action types shall not be used more than one time in a Stateflow state.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Rationale

Sub ID a:

  • The execution order will differ depending on the order in which they are described.

  • Execution order can be difficult to understand when the action type is described multiple times.

Verification

Model Advisor check: Check repetition of action types (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a