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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | threShold | 1e-2 | Threshold for equality comparison |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u1 | Value to check | |
| Modelica.Blocks.Interfaces.RealInput | u2 | Value to check | |
| Modelica.Blocks.Interfaces.RealOutput | y | Error |
Revisions
-
January 13, 2017, by Michael Wetter:
Revised implementation to output difference rather than the absolute value of the difference. -
January 12, 2017, by Thiery S. Nouidui:
First implementation.