maxDurationLimited = MaxDuration(check=..., window=..., upperLimit=...).y;
In any (sliding) time window of length window, the longest time duration where the Boolean input check was permanently true (= maxDuration) must be ≤ parameter upperLimit. Whenever this property is fulfilled, Boolean output y = true, otherwise y = false:
y = maxDuration ≤ upperLimit;
The property is demonstrated with the following example calling the block as:
results in
simulation result |