Rate limiter
Limits how fast a signal may change.
- signal
- Modelica Standard Library
- 2 ports
- 2 parameters
rateLimiterLibraryNonlinearDescription
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.
Also in this example:RelaySine waveSaturationDead zone
Ports
Inputs 1
-
u
Input signal.
Outputs 1
-
y
Rate-limited output.
Parameters
-
Rising limit
rising10 1/s≥ 0
Largest upward rate, in units per second. 0 or more; 0 stops the output from rising.
-
Falling limit
falling10 1/s≥ 0
Largest downward rate, in units per second, as a positive number. 0 or more; 0 stops the output from falling.
Equations
dy/dt = min(rising, max(−falling, (u − y) / 0.001 s)) At time 0 the output equals the input (steady state).
Implementation
Modelica.Blocks.Nonlinear.SlewRateLimiterAssumptions 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.