partialThresholdComparison partial block
Requirements.Interfaces.partialThresholdComparison
ยท source
Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal
Block has one continuous Real input and one continuous Boolean output signal as well as a 3D icon (e.g., used in Blocks.Logical library).
The block declares parameter threshold (default 0), input u and output
y, and displays the value of threshold in its icon. It has no equation; a block that extends
from it defines y as comparison of u with threshold and adds the comparison symbol to the icon:
GreaterThreshold, GreaterEqualThreshold,
LessThreshold and LessEqualThreshold.
Parameters
| Name | Type | Description |
|---|---|---|
threshold parameter | Real | Comparison with respect to threshold |
Components and variables
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.RealInput | Real input signal that is compared with threshold |
y | Modelica.Blocks.Interfaces.BooleanOutput | Boolean output signal (result of the comparison) |