Main Content

Check settings for data ports in Multiport Switch blocks

Check ID: mathworks.jmaab.jc_0630

Guideline: jc_0630: Usage of Multiport Switch blocks


Identifies the Multiport Switch blocks that violate data port settings.

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

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, c

  • JMAAB — a, b, c

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0630_a: Check number of inputs to Multiport Switch blockMultiport Switch block in the model have fewer than two data ports.Make sure that the Multiport Switch block in the model have two or more data ports.
jc_0630_b: Check input type to Multiport Switch blockData type of control port on the Multiport Switch is not set to unsigned integer.Change the data type of the control port on the Multiport Switch to unsigned integer.
jc_0630_c: Check data port order of Multiport Switch blockMultiport Switch blocks have incorrect settings.Set the Multiport Switch block setting Data port for default case to Additional data port, and Diagnostics for default case to None.

Capabilities and Limitations

  • Runs on library models.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Analyzes content of library linked blocks.

Edit-Time Checking

This check is supported by edit-time checking.

See Also