Main Content

Check for missing ports in Variant Subsystems

Check ID: mathworks.jmaab.na_0020

Guideline: na_0020: Number of inputs to variant subsystems

Description

Checks for number of inputs/outputs to a Variant Subsystem.

This check requires a Simulink® Check™ license.

Check Parameterization

Select Check for parameter 'Specify output when unconnected' on Variant Subsystem outports to allow a Variant Subsystem to have a different number of outports from the Choice Subsystems.

Note: The outports of Variant Subsystem must have the input parameter specify output when unconnected selected.

Results and Recommended Actions

ConditionRecommended Action
One or more Variant Subsystems have different number of inputs/outputs on their subordinate subsystems.Consider having same number of inputs/outputs on Variant Subsystems and their subordinate subsystems.

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 or charts.