Greater than threshold

True while the input exceeds the threshold.

  • signal
  • Boolean
  • Modelica Standard Library
  • 2 ports
  • 1 parameter
BlockGreater than thresholdKindgreaterThresholdLibraryLogic

Description

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
In Gradara, select a Greater than threshold block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:RampSine waveLess than thresholdGreater thanLess thanHysteresis

Ports

Inputs 1

  • u

    Real input.

Outputs 1

  • y

    True while u > threshold.

Parameters

  • Thresholdthreshold0.5

    Comparison level, in the units of u. Any real number.

Equations

Modelica
y = u > threshold

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Logical.GreaterThreshold
MSL documentation

Assumptions 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.