.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-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos