Rate limiter
signal.rate_limiter
Follows the input with a fast first order lag of time constant T whose rate of change is clamped to rise per second going up and fall per second going down. Choose T well below the time scale of the input.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
rise | 1/s | 1 | 0 to ∞ | Largest rate going up |
fall | 1/s | 1 | 0 to ∞ | Largest rate going down |
T | s | 0.001 | 0 to ∞ | Time constant of the tracking lag |
Equations
der(y) = if (u - y) / T > rise then rise else if (u - y) / T < -fall then -fall else (u - y) / T