.Modelica_Requirements.ChecksInSlidingWindow.MinDuration

Information

Syntax

property = MinDuration(check=..., window=..., lowerLimit=...).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 lowerLimit. Whenever this property is fulfilled, Property output y = Satisfied. If this property is not fulfilled at the end of a sliding time window, y = Violated (exception: before the end of the first time window, y = Undecided):

y =  if maxDuration ≥ lowerLimit then Satisfied else 
    (if first then Undecided else Violated);

Violated, Undecided, and Satisfied are elements of enumeration Property.

Example

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

results in

simulation result

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