Main Content

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:

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.

  1. Open the Model Configuration Editor and search for check ID jc_0061.

  2. Under Input Parameters, select Custom from the Standards list.

  3. Use the Block Types list table to delete or add a block and/or mask type.

  4. Click Apply and save the configuration.

Results and Recommended Actions

ConditionRecommended Action

Name is displayed and obvious from the block appearance.

Hide the block name by selecting Format > Hide Automatic Block Name.

Name is not descriptive. Specifically, the block name is:

  • Not obvious from the block appearance.

  • The default name appended with an integer.

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:

  • Provided for blocks that are not obvious from the block appearance.

  • Not a default name appended with an integer.

Modify the blocks to show the block name by deselecting Format > Hide Automatic Block Name.
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.