Main Content

Check Output data type of operation blocks

Check ID: mathworks.jmaab_v6.jc_0651

Guideline: jc_0651: Implementing a type conversion

Description

Checks for numerical operation blocks in a model that directly specify the Output data type parameter.

Exception: This check will not analyze the inport blocks of Simulink® functions. However, it analyzes the following blocks:

  • Constant

  • Data Type Conversion

  • Bus Creator

  • Enable Port

  • Data Store Memory

  • Compare To Constant

  • InportShadow

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 — No recommendations

  • JMAAB — a

Results and Recommended Actions

ConditionRecommended Action
One or more numerical operation blocks directly specify the Output data type parameter.Instead of directly specifying the Output data type parameter in numerical operation blocks, use the Data Type Conversion block to change the data type of a block output signal.

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.

  • Allows exclusions of blocks or charts.