jc_0741: Timing to update data used in state chart transition conditions
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — No recommendations
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
Variables that are used in a state transition condition shall not use state action
du
to perform an update.
Not Applicable
State action du
is used to perform an update.
Rationale
Sub ID a:
The execution order of the transition condition and implement of
during
can be difficult to understand, which increases the risk of errors.
Verification
Model Advisor check: Check updates to variables used in state transition conditions (Simulink Check)
Last Changed
R2020a
See Also
Transition Between Operating Modes (Stateflow)
Represent Operating Modes by Using States (Stateflow)
Execution of a Stateflow Chart (Stateflow)
Version History
Introduced in R2020a