Professional Documents
Culture Documents
LAB 4
LOOPS
Demonstrate solutions with LabVIEW application that related to the real world problems.
(P3)
Show how to debug a visual programs design using LabVIEW with readability and future
development with ability to establish effective reports, documentation, presentations.
(P3)
STUDENT ID : 57214115143
INTRODUCTION
OBJECTIVES
At the end of the lab, the student will be able to:
Understand and practice using Loops in LabVIEW.
Use Loops as a part of LabVIEW programming and perform basic math operations
SELF ASESSMENT
1. Define is a For Loop. Under what circumstances are For Loops used.
A for loop executes a subdiagram, a set number of times.
2. Define is a While Loop. Under what circumstances are While Loops used.
While loop executes a subdiagram until a condition is met. A while loop stops
executing the subdiagram, inly if the expected value at the conditional terminal exists.
3. Differentiate the usage of conditional terminals, Stop if True and Continue if
True in a While Loop.
Stop if true Continue if true
LABWORK
1. Write a program to display the numbers and its cube from 1 to 10 using
(a) a For Loop
2. Write a program in LabVIEW to print the number, the square and the cubes of only even
numbers from 0 to 100.
4. Create a VI to animate a bird flying. Use the Picture Ring control to insert and
display pictures to be animated.