Main Content

Check for mixing basic blocks and subsystems

Check ID: mathworks.maab.db_0143

Guideline: db_0143: Usable block types in model hierarchy

Description

Check for systems that mix primitive blocks and subsystems.

You must design each level of a model with building blocks of the same type, for example, only subsystems or only primitive (basic) blocks.

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 db_0143.

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

  3. In the Treat blocktype list as list, select Allowed to include the blocks/masks in the analysis or Prohibited to exclude the blocks/masks from the analysis.

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

  5. Click Apply and save the configuration.

Results and Recommended Actions

ConditionRecommended Action
A level in the model includes subsystem blocks and primitive blocks.

Move nonvirtual blocks into the subsystem.

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 all.

  • Allows exclusions of blocks and charts.