ECE 100 Fundamentals of LabVIEW Programming
BASIC ARITHMETIC, COMPARISON AND BOOLEAN CONTROL OPERATIONS IN LABVIEW
Activity No. 2
I. INTENDED LEARNING OUTCOMES
At the end of this activity, the student shall be able to:
1. Distinguish between an Arithmetic and Comparison function.
2. Enumerate the operations under Arithmetic, Comparison and Boolean functions.
3. Create a useful VI that performs arithmetic and comparison operations in LabVIEW.
II. BACKGROUND INFORMATION
One of the fundamental LabVIEW applications is in mathematical and engineering calculations.
This platform allows the user to create a simple program using basic arithmetic functions and use the result
of these programs to evaluate a certain scenario using Boolean and comparison functions.
The basic arithmetic functions in LabVIEW include but not limited to addition, subtraction,
multiplication, division, square root, reciprocal and many more. Of course, these functions are the building
blocks of program requiring elementary and advanced calculations. Comparison operations however
include, but is not also limited to equal, less than, greater than, greater than or equal, less than or equal,
equal to, not equal to etc.
The use of arithmetic and comparison functions can be interconnected with how the results of
arithmetic functions may be evaluated. Comparison functions may be used to compare numerical values to
other numerical values such that the result of this comparison allows the program to interpret certain
program specifications. This interpretation may then be visually presented by a Boolean function such as
LEDS. Boolean LEDs may be used to visually notify the user on the numeric output and this notification
interprets something decisive or a quantity in range. However, there are Boolean functions that may be
used as input. This includes, but not limited to toggle switch, slide witch, OK, Cancel and STOP button.
They may refer to multiple states such as ON/OFF or TRUE or FALSE.
Page 12