Check input and output datatype for Switch blocks
Check ID:
mathworks.jmaab.jc_0650
Guideline: jc_0650: Block input/output data type with switching function
Description
Checks whether the input and output data types for data ports are the same for switching function blocks.
Applies to the Switch, Multiport Switch, and Index Vector blocks.
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 — a
JMAAB — a
Results and Recommended Actions
Condition | Recommended Action |
---|---|
Input and output data ports have different data types. | Change the input or output data port so the data type is the same for both. |
Capabilities and Limitations
Does not run on library models.
Allows exclusions.
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
.
Edit-Time Checking
This check is supported by edit-time checking.
See Also
Blocks: