Compare To Constant
Comparison of the input signal with a constant.
Description
The Compare To Constant block compares the input signal with a constant specified in the Constant value parameter. The method of comparison is specified by the Operator parameter.
Ports
Parameters
Main
Operator - logical operator
< = (by default)
| ~=
| ==
| <
| >=
| >
This parameter can have the following values:
-
- determines whether the input value is equal to a constant.
-
- determines whether the input value is not equal to a constant.
-
- determines if the input value is less than a constant
-
- determines whether the input value is less than or equal to a constant.
-
- determines whether the input value is greater than a constant.
-
- determines whether the input value is greater than or equal to a constant.
Block parameter |
|
Value |
|
* By default* |
|
Constant value - constant for comparison
scalar
| vector
| matrix
The constant value to which the value of the input signal is compared.
Block parameter |
|
Value |
|
By default |
|
Output data type - output data type
Bool (by default)
| UInt8
Specify output data type Bool
or UInt8
.
Block parameter |
|
Value |
|
By default |
|