Main Content

na_0020: Number of inputs to variant subsystems

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — b

  • JMAAB — a, b

MATLAB Versions

All

Rule

Sub ID a

The number of inputs/outputs for a Variant Subsystem block and its child structured subsystem or model reference shall be the same.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

The number of inputs to the child subsystem is different.

Sub ID b

The number of inputs/outputs for a Variant Model block shall be the same as its referenced model.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

The number of inputs to the referenced model is different than the inputs to the Variant Model block.

Rationale

Sub IDs a, b:

  • Unconnected signals can be unintentionally overlooked when the number of inputs/outputs is different.

Verification

Model Advisor check: Check for missing ports in Variant Subsystems (Simulink Check)

Last Changed

R2024b

Version History

Introduced in R2020a