Engee documentation

Wrap To Zero

Reset to zero when the input signal exceeds the threshold value.

wrap to zero

Description

The Wrap To Zero block sets the output to zero when the input exceeds the value of the Threshold parameter. When the input is less than or equal to the value of the Threshold parameter, the output is equal to the input.

Ports

Input

Port_1 - input signal
scalar | vector

Input signal; scalar or vector. If the value of the input signal is equal to or greater than the Threshold parameter, the output signal is set to zero.

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

Output

Port_1 - output signal
scalar | vector

The output signal is set equal to the value of the input signal or zero.

Data types: Float64.

Parameters

Threshold - threshold value
255 (by default) | `scalar `

Threshold value for setting the output to zero.

Usage in program code

Block parameter

Threshold

Values

scalar

By default

255

Additional options

C code generation: Yes