Main Content

jc_0791: Duplicate data name definitions

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a, b, c

  • JMAAB — a, b, c

MATLAB Versions

All

Rule

Sub ID a

Data name definitions shall not be duplicated in the base workspace and model workspace.

Custom Parameter

Not Applicable

Sub ID b

Data names shall not be duplicated in the base workspace and data dictionary (sldd).

Custom Parameter

Types of data dictionary

Sub ID c

Data name definitions shall not be duplicated in the model workspace and data dictionary (sldd).

Custom Parameter

Types of data dictionary

Rationale

Sub IDs a, b, c:

  • Duplicated data name can cause unintended model behavior.

Verification

Model Advisor check: Check duplication of Simulink data names (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a