Activity 2-Arithmetic Comparision and Boolean Operations in LabVIEW
Activity 2-Arithmetic Comparision and Boolean Operations in LabVIEW
Page 12
2. Create a VI on Front Panel as shown. The first three input numbers will be Numeric Controls, the next
three will be Knobs and the last four inputs will be Horizontal Pointer Slide. You can access all the
controls by Right-clicking anywhere in the Front PanelControlsNumeric and then select Numeric
Control, Knob and Horizontal Pointer slide. The front panel should look like as shown in the figure
below:
Page 13
Note: To create constant on one of the inputs of the Division operation, right click on the node, choose
Create and then select Constant.
4. Click on the Run Continuously button on the Front Panel. Select desired inputs by adjusting the
controls on your desired level and confirm your calculations using manual computation. Save your VI as
Act2_1_1.VI
Question: Explain how the VI works? What is the function of the given program above?
Question: What do you notice if you use the numeric controls Inputs 1 to 3 compared with the rest
of the Input Controls?
Page 14
Question: How does the modified VI work now? How do you compare the two VIs?
Question: What function under Arithmetic functions has been used to get rid of multiple Add icons?
How do you find this function? (State the sequence to access this function). How does it work?
Page 15
Question: How can you change Knobs and Slide Pointers to a Numeric Control without deleting the
previously used controls?
Page 16
Before running, manipulate the controls and input the following values to
Input 4 = 45
Input 5 = 69
Input 6 = 70
Input 7 = 67
Input 8 = 77
Input 9 = 70
Input 10 = 71
4. Change the values of input controls as shown below: Observe the LEDs.
Input 1 = 783
Input 4 = 100
Input 7 = 83
Input 2 = 77
Input 5 = 69
Input 8 = 77
Input 3 = 95
Input 6 = 95
Input 9 = 100
Input 10 = 92
Page 17
Where x is the grade per course is the average grade and N is the number of data.
Do not use advanced objects. Use only basic arithmetic operations to compute variance and
standard deviation
3. Create a LabVIEW program that computes the final grade of the student in a particular course. Employ
the TIP Grading system. The following are the components of the grades:
Class Standing:
Quizzes 70%
Seatworks 20%
Assignments -10%
Prelim, Midterm and Final Exams
Prelim, Midterm and Final grades.
Page 19
3. What is the function of a Boolean operator? Why do we consider LEDs as Boolean components?
5. How does arithmetic, comparison and Boolean objects may be interconnected with each other? Give
some example of programs (not those which are in this activity) that best exemplify the use of the said
three functions?
VI. CONCLUSION
VII. RUBRICS FOR LABORATORY PERFORMANCE
Page 20