.Modelica_Requirements.ChecksInSlidingWindow.MinRising

Information

Syntax

property = MinRising(check=..., window=..., nRisingMin=1).y;

Description

In any (sliding) time window of length window, the number or rising edges of the Boolean input check (= nRising) must be ≥ parameter nRisingMin. Whenever this property is fulfilled, Property output y = Satisfied. If this property is not fulfilled at the end of a sliding time window, Property output y = Violated (exception: before the end of the first time window, y = Undecided):

y =  if nRising ≥ nRisingMin 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-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos