Main Content

jc_0732: Distinction between state names, data names, and event names

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

An identical name shall not be used for states, data (inputs and outputs, local data, constants, parameters, data store memory), or event names in a single Stateflow Chart (Stateflow).

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Names are duplicated.

Rationale

Sub ID a:

  • Using unique names prevent misunderstanding.

Verification

Model Advisor check: Check uniqueness of Stateflow state, data and event names (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a