Check the display attributes of block names
Check ID:
mathworks.maab.jc_0061
Guideline: jc_0061: Display of block names
Description
Check the display attributes of subsystem and block names.
Display the name of a block or subsystem when it provides a description that is used to identify its function.
Otherwise, when the function of a block is easily identified from its visual appearance, do not display the name. Such blocks include:
ModelReference
Logic
Trigonometry
Sum
Merge
This check requires a Simulink® Check™ license.
Check Parameterization
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 — a
JMAAB — a
To customize the blocks and masks that are checked during the analysis, use the Model Advisor Configuration Editor.
Open the Model Configuration Editor and search for check ID
jc_0061
.Under Input Parameters, select
Custom
from the Standards list.Use the Block Types list table to delete or add a block and/or mask type.
Click Apply and save the configuration.
Results and Recommended Actions
Condition | Recommended Action |
---|---|
Name is displayed and obvious from the block appearance. | Hide the block name by selecting Format > Auto Name>Name Off |
Name is not descriptive. Specifically, the block name is:
| Modify the block name to provide descriptive information, or hide the block name by selecting Format > Hide Automatic Block Name |
Name is descriptive and not displayed. Descriptive names are:
| Modify the blocks to show the block name by deselecting Format > Auto Name>Name On |
Check does not evaluate my custom blocks and masks. | Use the Model Configuration Editor to add your custom checks and blocks |
Capabilities and Limitations
Runs on library models.
Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to
on
.Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to
graphical
.Allows exclusions of blocks and charts.
Edit-Time Checking
This check is supported by edit-time checking.