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 |