Main Content

Check for missing ports in Variant Subsystems

Check ID: mathworks.jmaab_v6.na_0020

Guideline: na_0020: Number of inputs to variant subsystems

Description

Checks the number of inputs/outputs on the subordinate subsystems of a Variant Subsystem. Subordinate subsystems include subsystems, models, charts and MATLAB functions.

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 — No recommendations

  • JMAAB — a

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

  • The check cannot fix the number of inputs/outputs on a chart or MATLAB Function.

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