.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-04-24T18:15:52Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos