.Modelica_Requirements.ChecksInFixedWindow.WhenChanging

Information

Syntax

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

Description

At the time instants where condition has a changing edge, property is set to "BooleanToProperty(check)" (so either Satisfied or Violated) and keeps this value until the next changing edge. At initialization, property = Undecided, independently of the value of condition.

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-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos