Compare to Constant
Purpose
Compare the input signal to a constant threshold
Library
Control / Logical
Description
The Compare to Constant block compares the input signal to a threshold value. If the comparison is true it outputs 1, otherwise 0. The input signal is the first argument and the threshold value the second argument for the comparison operator.
Parameters
- Relational operator
- Chooses which comparison operation is applied to the input
signal and the threshold value. Available operators are
equal (
),
unequal (
),
less (
),
less or equal (
),
greater or equal (
),
greater (
).
- Theshold value
- The value to which the input signal is compared.
Probe Signals
- Input
- The input signals.
- Output
- The output signal.