Check settings for data ports in Multiport Switch blocks
Check ID:
mathworks.jmaab_v6.jc_0630
Guideline: jc_0630: Usage of Multiport Switch blocks
Description
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 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, b, c
JMAAB — a, b, c
Results and Recommended Actions
Guideline Sub ID | Condition | Recommended Action |
---|---|---|
jc_0630_a: Check number of inputs to Multiport Switch block | Switch block or a Multiport Switch block in the model have fewer than two data ports. | Make sure that the Switch blocks or a Multiport Switch block in the model have more than two data ports. |
jc_0630_b: Check input type to Multiport Switch block | Data type of control port on the Multiport Switch is not set to unsigned integer or enum. | Change the data type of the control port on the Multiport Switch to unsigned integer or enum. |
jc_0630_c: Check data port order of Multiport Switch block | Multiport 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. However, edit-time checking for this check does not verify compliance with jc_0630 sub ID b.