.Modelica_Requirements.ChecksInFixedWindow.MinDuration

Information

Syntax

property = MinDuration(condition=..., check=..., durationMin=...).y;

Description

In every duration where the Boolean input condition is true, the Boolean input check must be true for at least the time span defined by parameter durationMin. Whenever this property is fulfilled, property output y = Satisfied. If this property is not fulfilled at the end of a true condition phase, property output y = Violated. At initialization and when entering a true condition phase, property output y = Undecided. Output y keeps its value, until one of the above conditions occur.

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

Example

This block is demonstrated with the following example:

results in

simulation result

Generated at 2024-03-28T19:15:55Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos