.Modelica_Requirements.ChecksInFixedWindow.WhenFalling

Information

Syntax

property = WhenFalling(condition=..., check=...).y;

Description

At the time instants where condition has a falling edge, property is set to "BooleanToProperty(check)" (so either Satisfied or Violated) and keeps this value until the next falling edge. Before the first falling edge, property = Undecided. If condition = false during initialization, property = toProperty(check) at initialization.

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

Example

The property 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