db_0137: States in state machines
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
Sub ID a
When the Decomposition for the Chart block or
State is set to
OR (Exclusive), there shall be at least
two states in the hierarchy.
The hierarchy contains only one state when the
Decomposition option is set to
Sub ID a:
Redundant descriptions impair readability.
Generated code includes unnecessary state variables.
Model Advisor check: Check for state in state machines (Simulink Check)
JMAAB guideline db_0137, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Represent Operating Modes by Using States (Stateflow)