Check for consistency in model element names
Guideline: jc_0602: Consistency in model element names
Checks if the model elements connected to a signal are following consistent naming.
The following names must be matched exactly when directly connected with signal lines:
Inport block name
Outport block name
Structural subsystem input port label name
Structural subsystem output port label name
From tag name
Goto tag name
Signal line signal name
Exception 1: The name of a signal line connected to one of the below subsystems can have a different name to that of the subsystem port label name:
Subsystems linked to a library
Exception 2: If a combination of Inport blocks, Outport blocks, and other blocks have the same block name, use a suffix or prefix for the Inport and Outport blocks for consistent naming. This can be configured through Model Advisor Configuration Editor.
This check requires a Simulink® Check™ license.
This check does not include sub-checks because the MAB modeling guideline provides only one sub ID.
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 — No recommendations
JMAAB — a
You can configure the following parameters to customize the check action:
|Input Parameter||Default Value|
|Consistent naming format for combination of Inport and Outport blocks||Prefix(<Prefix_tag><Signal_name><Sequence>) or Suffix(<Signal_name><Sequence><Suffix_tag>)|
|Prefix/Suffix tag for Inports||IN_ (Default value, can be configured)|
|Prefix/Suffix tag for Outports||OUT_ (Default value, can be configured)|
Results and Recommended Actions
|One or more model elements are not consistent with the connected signal name.|
Rename the deviating model elements to match the signal name, or be consistent with Inport/Outport blocks.
Capabilities and Limitations
Runs on library models.
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
Allows exclusions of blocks or charts.