NA-MAAB — a1/a2
JMAAB — a1/a2
All
Variables, constants, or parameters in Stateflow® Chart (Stateflow) shall not be used to perform division operations.
Not Applicable
Division is performed outside of the Stateflow Chart.
Division occurs within the Stateflow Chart.
When division occurs in a Stateflow Chart (Stateflow), the process shall prevent division by zero.
Not Applicable
The process is defined to prevent division by zero.
The process does not prevent division by zero.
Sub ID a1, a2:
Deviation from the rule can cause unintended operation and code generation results.
Model Advisor check: Adherence to this modeling guideline cannot be verified by using a Model Advisor check.
R2020a
JMAAB guideline jc_0711, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Fixed-Point Operations in Stateflow Charts (Stateflow)