Comparator
The Comparator I/O compares a signal to a certain reference value and indicates whether the signal is higher or lower than the reference value.

The comparator works as follows: all values of the signal are compared to the Reference value. Depending on the selected Comparison the comparator indicates whether each sample is higher than or equal to the selected reference value or lower than the reference value. How the comparator indicates this depends on the selected Mode.

Properties and actions

To control the behavior of the Comparator I/O, several properties are available. These can be accessed through a popup menu which is shown when the I/O is right clicked.

Reference

The Reference property sets the reference value of the Comparator I/O to which it compares the input signal.

Comparison

The Comparison property determines how the input signal is compared to the reference value.

  • When the comparison is Higher than, the comparison is true when the input signal is higher than or equal to the reference level. When the input signal is lower than the reference level, it is false.
  • When the comparison is Lower than, the comparison is true when the input signal is lower than the reference level. When the input signal is higher than or equal to the reference level, it is false.

Mode

The Mode property determines how the Comparator I/O indicates whether the comparison between input signal and reference value is true or false.

  • Mode is Value
    • When the comparison is true, the comparator outputs the input value.
    • When the comparison is false, the comparator outputs the reference value.
  • Mode is Binary
    • When the comparison is true, the comparator outputs the value "1".
    • When the comparison is false, the comparator outputs the value "0".

Common properties and actions

Related information

Limiter

The Limiter I/O limits or clips a signal to a certain range.