jc_0131: Usage of Relational Operator blocks
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
When using a Relational Operator block for comparison of signals and constants, the second (bottom) input shall be used as the constant input.
Custom Parameter
Not Applicable
Example — Correct
Example — Incorrect
Rationale
Sub ID a:
Using constant values and the same comparison method reduces misinterpretation of the model.
Verification
Model Advisor check: Check usage of Relational Operator blocks (Simulink Check)
Last Changed
R2020a
See Also
Relational and Logical Operators (Embedded Coder)
Version History
Introduced in R2020a