Check settings for data ports in Multiport Switch blocks
Check ID:
mathworks.jmaab.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 JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.
For reference, the 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 ID | Condition | Recommended Action |
---|---|---|
jc_0630_a: Check number of inputs to Multiport Switch block | Multiport 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 block | Data 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 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.