# Rate Limiter (G Dataflow)

Specifies a maximum rate of change of a signal.

## 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: 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: 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: 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: 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.

$D=\frac{u\left(t\right)-y\left(t-1\right)}{dt}$
$y\left(t\right)=\left\{\begin{array}{c}\mathrm{positive}\text{\hspace{0.17em}}\mathrm{slew}\text{\hspace{0.17em}}\mathrm{rate}×dt+y\left(t-1\right)\text{\hspace{0.17em}\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\mathrm{if}\text{\hspace{0.17em}}D>\mathrm{positive}\text{\hspace{0.17em}}\mathrm{slew}\text{\hspace{0.17em}}\mathrm{rate}\\ \mathrm{negative}\text{\hspace{0.17em}}\mathrm{slew}\text{\hspace{0.17em}}\mathrm{rate}×dt+y\left(t-1\right)\text{\hspace{0.17em}\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\mathrm{if}\text{\hspace{0.17em}}D<\mathrm{negative}\text{\hspace{0.17em}}\mathrm{slew}\text{\hspace{0.17em}}\mathrm{rate}\\ u\left(t\right)\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\mathrm{otherwise}\end{array}$

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

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

Web Server: Not supported in VIs that run in a web application