Rate Limiter
DiscontinuousRestricts the first time derivative (slew rate) of an incoming signal within strict upper and lower gradient bounds. The output follows the input signal directly whenever the rate of change is within allowable bounds, but ramps linearly at the configured limit whenever the input changes too rapidly. Essential for modeling physical actuator speed limits (such as valve stroke speeds, flight control surface actuators, and robotic joint motors) and preventing mechanical shock or electrical inrush current.
Mathematical Model
In continuous time, the instantaneous rate of change of output is constrained by:
In discrete numerical simulation with timestep , the rate of change is evaluated from the prospective signal delta:
The clamped slew rate is then applied to compute the updated output:
where is risingRate and is fallingRate.
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in |
Input | number | Required |
| ← Out | out |
Output | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
risingRate |
Rising Slew Rate (units/s) | number | 1 |
|
fallingRate |
Falling Slew Rate (units/s) | number | -1 |
Usage Examples
Example 1: Aerospace Flight Control Surface Deflection Limits
In aircraft fly-by-wire flight control systems, hydraulic rudder and aileron servos have fixed displacement velocity ceilings imposed by hydraulic pump flow capacities (e.g. 60°/s). When an aggressive pilot stick input or autopilot maneuver requests a 30° step deflection, inserting a RateLimiter block with risingRate = 60 deg/s and fallingRate = -60 deg/s forces the surface to slew smoothly over 0.5 seconds, modeling true aerodynamic control authority.
Example 2: Inverter Soft-Start and Inrush Current Mitigation
In high-power industrial motor drives and solar battery inverters, applying a step voltage change to a large capacitor bank creates severe charging current spikes (). Inserting a RateLimiter block with risingRate = 50 V/s in series with the 400V setpoint produces a controlled 8-second linear ramp, maintaining charging currents well below breaker trip thresholds.
Remarks & Best Practices
- Live Slew Response Preview: The property editor plots a comparative step response illustrating the target step against the slew-rate limited output ramps, reporting calculated rise and fall times.
- Asymmetric Slew Modeling: By specifying distinct numerical magnitudes for
risingRateandfallingRate, engineers can model asymmetric mechanisms, such as spring-return safety valves that slam shut rapidly ( mm/s) but open slowly against hydraulic pressure ( mm/s). - Amplitude vs. Rate Limiting:
RateLimiterrestricts signal velocity (), whileSaturationrestricts signal amplitude (). Real-world actuator models typically cascade both blocks to capture full physical constraints. - Initial Step Response: On the first simulation timestep, the block initializes to the starting input value, avoiding an unintended slew ramp from zero unless a step input is explicitly applied at .
- Timestep Resolution: To ensure accurate linear ramp reproduction, the simulation step size should be chosen such that the total transition time contains at least 10–20 solver steps ().
Frequently Asked Questions (FAQ)
Q: Why does actuator slew-rate limiting cause integrator windup and limit cycles?
When an actuator hits its physical slew rate limit (), its output lags behind the demanded control signal, introducing a nonlinear phase lag exceeding . If an upstream integrator continues integrating the resulting tracking error, severe overshoot or persistent limit-cycle oscillations occur. Mitigate this by disabling integration during rate saturation or feeding back the difference into an anti-windup loop.
Related Components
- Saturation: Limits absolute upper and lower signal amplitude excursions.
- Integrator: Computes time integral of rates or accelerations with optional state resets.
- Smooth: First-order exponential smoothing filter for attenuating high-frequency noise.
- LeadLag: First-order dynamic phase lead and lag compensator.