Engee documentation

Rate Limiter

The maximum rate of change of the signal.

blockType: RateLimiter

Path in the library:

/Basic/Discontinuities/Rate Limiter

Description

Block Rate Limiter restricts 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 — input data of the current block and time;

  • and — output data and time in the previous step.

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

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

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

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

Ports

Entrance

Port_1 — input signal
scalar | vector | the matrix

The input signal whose speed needs 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 | the matrix

The output signal from the rate limiting algorithm.

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

Parameters

Rising slew rate — the limit of the derivative to increase the input data
1 (default) | scalar | vector | the matrix

Sets the limit of the input signal rise rate.

Programmatic use

Block parameter

RisingSlewLimit

Values

scalar | matrix | matrix`

By default

1

Falling slew rate — the limit of the derivative to reduce the input data
-1 (default) | scalar | vector | the matrix

Specify the lower limit of the input signal drop rate. This parameter is configurable for fixed-point inputs.

Programmatic use

Block parameter

FallingSlewLimit

Values

scalar | matrix | matrix

By default

−1

Sample time mode — pass calculation step mode:q[<br>] inherited (default) | continuous

Specify the mode of the calculation step.

  • continuous — continuous.

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

Programmatic use

Block parameter

SampleTimeMode

Values

inherited | continuous

By default

inherited

Initial condition — initial condition of
0 (default) | scalar

Set the initial modeling condition.

Dependencies

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

Programmatic use

Block parameter

InitialCondition

Values

scalar | matrix | matrix

By default

0

Additional options

C code generation: Yes