Basic Labview Tutorial Worksheet
Basic Labview Tutorial Worksheet
Start LabView for Education 2010. On the bottom of the Getting Started screen, there
is a Teach Me link. There is a Basic LabView tutorial. Be sure to save your *.VI files
for each tutorial and project!
1)Pythagorean Theorem
SQRT(a2 + b2) =c
5) Case Structures
If you want to perform code until the user presses a key, a sensor reads a value that triggers some condition,
or an error condition occurs, use a While Loop.
Generally, you don't want to use a While Loop in a Count Control loop. It is cleaner to use a For Loop.
STOP = false
While STOP is false
print random_number
Check if stop button has been pressed and set STOP to true if it has
End while
If you want to perform code a set number of times, use a For Loop. The number of times to perform the code
can be a constant, a control, or any other method of storing an integer in a LabVIEW program.
Read number_to_be_printed
For i=0 to number_to_be_printed
print random_number
End for
8) Shift Registers