Hi,
There isn't any explicit mechanism for time tolerance in Test Sequence, however, you can use the following pattern to achieve something similar (transition conditions omitted):
step_TrueFor1Second
if elapsed == 0
measured = 0;
end
measured = max(measured, duration(input1));
step_FalseForHalfSecond
if elapsed == 0
verify(abs(measured - 1.0) < 0.1, 'TrueFor1Second within 0.1 second tolerance')
measured = 0;
end
measured = max(measured, duration(input2));
step_TrueFor5Seconds
if elapsed == 0
verify(abs(measured - 0.5) < 0.1, 'TrueForHalfSecond within 0.1 second tolerance')
measured = 0;
end
measured = max(measured, duration(input3));
moreSteps
if elapsed == 0
verify(abs(measured - 5) < 0.1, 'TrueFor5Seconds within 0.1 second tolerance')
measured = 0;
end
...
The basic idea is to perform the time measurement in a step (using an auxiliary local "measured" and the "max" and "duration" functions), and verify it with tolerance at the beginning of the next step (if "elapsed == 0").
Let me know if you need further clarification of the above pattern.
Yit