Contents



Numeric Comparison Modules

Next

Function:

These modules compare 2 values and set Bool outputs to indicate which is greater, or if they are equal.

 

 


Left-hand side pins:

Input 1, Input2    - Values to be compared.

Right-hand side pins:

Input 1 < Input 2 - TRUE if Input 1 is less than Input 2, otherwise FALSE.

Input 1 = Input 2 - TRUE if Input 1 equals Input 2, otherwise FALSE.

Input 1 > Input 2 - TRUE if Input 1 is greater than Input 2, otherwise FALSE.

Notes:

The right-hand pin results can be combined using a DH_BooleanOr to test for greater or equal, less or equal, and not equal conditions.

You can use these modules with DH_BoolToFloat and DH_BoolToVoltage to make GUI-value-based comparators. The combination below sends out the Float "Hi Val" if Input 1 is less than or equal to Input 2. Otherwise the "Lo Val" Float is output.

In the following combination, the "Hi Val" is sent out as a voltage if Input 1 is greater than
Input 2, otherwise the "Lo Val" voltage is output.

top

Next