Greater than threshold
True while the input exceeds the threshold.
- signal
- Boolean
- Modelica Standard Library
- 2 ports
- 1 parameter
greaterThresholdLibraryLogicDescription
True while the input is strictly greater than a fixed threshold.
Example
Comparators A sine compared with thresholds, with a ramp, and through a hysteresis band.
sin(πt)t / 4Above 0.5Below −0.5Hysteresis ±0.5Sine > rampSine < ramp
Also in this example:RampSine waveLess than thresholdGreater thanLess thanHysteresis
Ports
Inputs 1
-
u
Real input.
Outputs 1
-
y
True while u > threshold.
Parameters
-
Threshold
threshold0.5Comparison level, in the units of u. Any real number.
Equations
Modelica
y = u > threshold
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Blocks.Logical.GreaterThresholdAssumptions and limitations
- No hysteresis: a noisy input near the threshold toggles the output at every crossing. Use Hysteresis to avoid chatter.
See also
Select a block in Gradara and press F1 to open its page offline.