Main Content

Check duplication of Simulink data names

Check ID: mathworks.jmaab.jc_0791

Guideline: jc_0791: Duplicate data name definitions

Description

Checks for a duplicate definition of data names. Simulink® data names must be unique across the base workspace, model workspace, and data dictionary.

This check requires a Simulink Check™ license.

Check Parameterization

This check contains sub-checks that correspond to the sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the MAB guideline sub-ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a, b, c

  • JMAAB — a, b, c

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0791_a: Check for repeated data names across base workspace and model workspace.Simulink data names are not unique across base workspace and model workspace.Rename the repeated data name either in the base workspace or the model workspace.
jc_0791_b: Check for repeated data names across base workspace and data dictionary.Simulink data names are not unique across base workspace and data dictionary.Rename the repeated data name either in the base workspace or the data dictionary.
jc_0791_c: Check for repeated data names across model workspace and data dictionary.Simulink data names are not unique across model workspace and data dictionary.Rename the repeated data name either in the model workspace or the data dictionary.

Capabilities and Limitations

  • Runs on library models.

  • Does not allow exclusions of blocks and charts.