CompareToConstant
This block compares its input with a constant parameter by way of a relational operator.
Library
LogicalOperations
Description
The CompareToConstant block compares input with a constant by way of a relational operator, and produces a double output, 1 for true, and 0 for false.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
op | Relational operator | '==' | ||
C | Constant | |||
zcr | Apply zero crossing | Number | 0 | |
externalActivation | External Activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | yes | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |