Engee documentation

Detect Rise Nonnegative

Detection of a rising edge, provided that the value of the signal increases to a non-negative value, and its previous value was strictly negative.

blockType: Detect Rise Nonnegative

Path in the library:

/Basic/Logic and Bit Operations/Detect Rise Nonnegative

Description

Block Detect Rise Nonnegative determines that the current value of the input signal is greater than or equal to zero, and its previous value was less than zero.

  • The output signal takes the value true (1) when the value of the input signal is greater than or equal to zero, and its previous value was less than zero.

  • The output signal takes the value false (0) if the value of the input signal is less than zero, or if it is non-negative and its previous value was also non-negative.

This block can only be used with discrete solvers.

Ports

Input

# IN_1 — Input signal
scalar | vector | the matrix

Details

The input signal is in the form of a scalar, vector or matrix.

Data types

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

Complex numbers support

Yes

Output

# OUT_1 — Output signal
scalar | vector | the matrix

Details

The output signal is in the form of a scalar, vector or matrix.

  • The output signal takes the value true (1) when the value of the input signal is greater than or equal to zero, and its previous value was less than zero.

  • The output signal takes the value false (0) if the value of the input signal is less than zero, or if it is non-negative and its previous value was also non-negative.

Data types

Bool, UInt8

Complex numbers support

Yes

Parameters

Main

# Initial condition — the initial value of the input signal
Scalar / array of real numbers

Details

Sets the initial value of the input signal.

Default value

0.0

Program usage name

vinit

Tunable

Yes

Evaluatable

Yes

# Output data type — type of output data
Bool | UInt8

Details

Set the type of output data Bool or UInt8.

Values

Bool | UInt8

Default value

Bool

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes