.Modelica_Requirements.SignalAnalysis.CrossingMonitoring

Information

Syntax

b = CrossingMonitoring(u=..., threshold = 0).y;

Description

Whenever the Real input u crosses parameter threshold from negative to positive values, output y is set to true, and whenever u crosses threshold from positive to negative values, y is set to false. The default value for the threshold = 0.

Example

This block is demonstrated with the following example:

results in

simulation result

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos