Detect data change from specified value in test step
hasChangedFrom(
returns u
,A
)true
if the value of u
changes from the
value A
. Otherwise, hasChangedFrom
returns
false
.
Detect if x
has changed from a value of 15. This statement returns
true
when x
had a value of 15 in the previous time
step and has a value not equal to 15 in the current time step.
hasChangedFrom(x,15)
hasChangedFrom
statements can be used in the Test Sequence and Test
Assessment blocks and in Stateflow® charts.