Rate Limiter
- Updated2023-02-17
- 3 minute(s) read
Rate Limiter
Specifies a maximum rate of change of a signal.
Inputs/Outputs

reset
A Boolean or a Boolean array that determines whether to use initial output to compute the rate limiter.
| True | Uses initial output to compute the rate limiter. |
| False | Uses the previous output to compute the rate limiter. |
This node automatically uses initial output to compute the rate limiter on the first call.
Default value: False

input
Input signal.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

positive slew rate
Allowable positive change in the output signal between successive calls to this node.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

negative slew rate
Allowable negative change in the output signal between successive calls to this node.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

initial output
Output value on the first call to this node or when reset is True.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

dt
Loop-cycle time or interval, in seconds, at which this node is called.
dt must be greater than zero.

output
Output signal.
This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Algorithm Definition for the Rate Limiter Function
The following equations define the rate limiter function.
where
- u is the input signal
- y is the output signal
- t is the current simulation time
- D is the rate of change of the signal