.Modelica_Requirements.ChecksInSlidingWindow.MaxDuration

Information

Syntax

maxDurationLimited = MaxDuration(check=..., window=..., upperLimit=...).y;

Description

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;

Example

The property is demonstrated with the following example calling the block as:

results in

simulation result

Generated at 2024-04-22T18:15:51Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos