Save value of an expression
latch( saves the value of
x when the test step is entered and returns that value of
latch(x) statement reevaluates the next
time the step is entered.
Use latch to Save a Value
Save the value of the torque in the variable
latch_val = latch(torque)
latchsignal generation statements can be used in the Test Sequence and Test Assessment blocks.
latchsignal generation statements cannot be used in Stateflow® charts.