jc_0657: Retention of output value based on conditional control flow blocks and Merge blocks
Sub ID Recommendations
NA-MAAB — a2
JMAAB — a1/a2
Sub ID a1
Unused action ports shall connect to Terminator block when these conditions are met:
Sub ID a2
A feedback loop using a Delay block shall be implemented when these conditions are met:
Sub ID a1:
Improves code efficiency.
Connections to Terminator block can be used when past values are held other than by the default (
Sub ID a2:
Retaining past values is explicit.
Adherence to this modeling guideline cannot be verified by using a Model Advisor check.
JMAAB guideline jc_0657, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.