Main Content

jc_0651: Implementing a type conversion

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

Data Type Conversion block shall be used when changing the data type of the block output signal.

Custom Parameter

Not Applicable

Example — Correct

Data Type Conversion block is used to convert the data type of the Divide block output signal.

Example — Incorrect

Data Type Conversion block is not used to convert the data type of the [Divide] output signal.

Rationale

Sub ID a:

  • Determining whether there is pointless processing or if something is missing from the design (such as a missing description) is easier when the processing of exceptions (else, default) is explicitly set in the model.

Verification

Model Advisor check: Check output data type of operation blocks (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a