blockCheckEquality

Check equality between inputs up to a threshold

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Block that outputs 0 if the difference |u1-u2| < threshold, or else it outputs u2-u1.

Parameters

TypeNameDefaultDescription
Realthreshold1e-2Threshold for equality comparison

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu1Value to check
Modelica.Blocks.Interfaces.RealInputu2Value to check
Modelica.Blocks.Interfaces.RealOutputyError

Revisions