Engee documentation

Rate Limiter

Limit rate of change of the signal.

rate limiter

Description

The Rate Limiter block limits the first derivative of the signal passing through it. The output data does not change faster than the specified limit. The derivative is calculated using this equation:

,

where

  • and are the current block input data and time;

  • and - output data and time at the previous step.

The output signal is determined by comparing with Rising slew rate and Falling slew rate:

  • If is greater than the Rising slew rate parameter ( ), the output signal is calculated as

  • If is less than Falling slew rate ( ), the output signal is calculated as

  • If is between and , the change in output is equal to the change in input:

Ports

Input

Port_1 - input signal
scalar | vector | matrix

Input signal whose speed is to be limited.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, Uint128, Fixed, Fixed-point.

Output

Port_1 - output signal
scalar | vector | matrix

Output signal from the speed limiting algorithm.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, Uint128, Fixed, Fixed-point.

Parameters

Rising slew rate - derivative limit for increasing input data
1 (by default) | scalar | vector | matrix

Sets the limit of the input signal slew rate.

Usage in program code

Block parameter

RisingSlewLimit

Values

scalar | vector | matrix

By default

1

Falling slew rate - derivative limit for reducing input data
-1 (by default) | scalar | vector | matrix

Specify the lower limit of the input slew rate. This parameter is adjustable for fixed-point input data.

Usage in program code

Block parameter

FallingSlewLimit

Values

scalar | vector | matrix

By default

-1

Sample time mode - calculation step mode
inherited (by default) | continuous

Specify the calculation step mode.

  • continuous - continuous.

  • inherited - inherited from the previous block in the model.

Usage in program code

Block parameter

SampleTimeMode

Values

inherited | continuous

By default

inherited

Initial condition - initial condition
0 (By default) | scalar

Set the initial condition of the simulation.

Dependencies

To use this parameter, set the Sample time mode parameter to inherited.

Usage in program code

Block parameter

InitialCondition

Values

scalar | vector | matrix

By default

0

Additional options

C code generation: Yes