Engee documentation

Saturation Dynamic

Dynamic limiting of the input signal at the top and bottom (saturation).

saturation dynamic

Description

Block Saturation Dynamic produces an output signal which is an input signal limited by the upper and lower limits. The upper and lower limits are set by the values of the up and lo input ports.

Input Output

lo ≤ Input value ≤ up

Input value

Input value < lo

Lower limit

Input value > up

Upper limit

Ports

Input

u - input signal
scalar | vector

Input signal.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

up - signal setting the upper limit of saturation
scalar | vector

A dynamic value that sets the saturation upper limit. When the input is greater than up, the output value is up.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

lo - signal setting the lower limit of saturation
scalar | vector

A dynamic value that sets the lower limit of saturation. When the input is less than lo, the output value is lo.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Output

y - output signal
scalar | vector

Output signal.

Data types: Float64

Additional options

C code generation: Yes