jc_0491: Reuse of Stateflow data
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
A variable shall not have multiple meanings (usages) in a single Stateflow Chart (Stateflow).
Not Applicable
Variable does not have multiple usages.
Variables k
and kk
have
multiple usages in the Stateflow
Chart.
Rationale
Sub ID a:
Variables can be misinterpreted when the variable name is different than the meaning of the numerical value that is assigned to the variable.
Verification
Model Advisor check: Adherence to this modeling guideline cannot be verified by using a Model Advisor check.
Last Changed
R2020a
See Also
Construct and Run a Stateflow Chart (Stateflow)
Version History
Introduced in R2020a