Rate limiter

Limits how fast a signal may change.

  • signal
  • Modelica Standard Library
  • 2 ports
  • 2 parameters
BlockRate limiterKindrateLimiterLibraryNonlinear

Description

Limits how fast its output can rise or fall (the Modelica library slew-rate limiter). The output tracks the input, moving no faster than Rising limit upward and Falling limit downward.

Near the input the output follows it with a first-order lag of 1 ms, so it settles on the input rather than hitting it exactly.

Example

Nonlinearities Saturation, dead zone, relay, and rate limiter acting on the same sine.

Sine, amplitude 2Saturation ±1Dead zone ±0.5RelayRate limit 2/s
In Gradara, select a Rate limiter block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:RelaySine waveSaturationDead zone

Ports

Inputs 1

  • u

    Input signal.

Outputs 1

  • y

    Rate-limited output.

Parameters

  • Rising limitrising10 1/s

    ≥ 0

    Largest upward rate, in units per second. 0 or more; 0 stops the output from rising.

  • Falling limitfalling10 1/s

    ≥ 0

    Largest downward rate, in units per second, as a positive number. 0 or more; 0 stops the output from falling.

Equations

Modelica
dy/dt = min(rising, max(−falling, (u − y) / 0.001 s))
At time 0 the output equals the input (steady state).

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Nonlinear.SlewRateLimiter
MSL documentation

Assumptions and limitations

  • Tracking uses a fixed 1 ms time constant; signals faster than that are also smoothed.

See also

Select a block in Gradara and press F1 to open its page offline.