jc_0733: Order of state action types
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
Basic state action types shall be stated in this order:
entry (en)
during (du)
exit (ex)
Not Applicable
Action types are out of order.
Sub ID b
Combined state action types shall be stated in this order:
entry (en)
during (du)
exit (ex)
Not Applicable
Action types are out of order
Rationale
Sub ID a:
Consistent modeling improves readability and maintainability.
Verification
Model Advisor check: Check order of state action types (Simulink Check)
Last Changed
R2020a
See Also
Represent Operating Modes by Using States (Stateflow)
During Actions (Stateflow)
Exit a State (Stateflow)
Version History
Introduced in R2020a