Compare To Zero
Compares the input signal with zero.
blockType: Compare To Zero
Path in the library:
|
Description
Block Compare To Zero compares the input signal with zero. The comparison method is set by the parameter Operator.
Ports
Input
#
IN_1
—
Input signal
scalar
Details
The input signal is in the form of a scalar for comparison with zero.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
OUT_1
—
Output signal
scalar
Details
Output — 0 if the comparison is false, and 1 if it is true.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Operator —
The logical operator
⇐ | == | ~= | < | >= | >
Details
- This parameter can have the following values
-
-
==— the input value is zero. -
~=— the input value is not zero. -
<— the input value is less than zero. -
⇐— the input value is less than or equal to zero. -
>— the input value is greater than zero. -
>=— the input value is greater than or equal to zero.
-
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Output data type —
type of output data
Bool | UInt8
Details
Specify the type of output data Bool or UInt8.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |