An
Introduction To Using LabView
-
Start LabView.
Choose New vi.
-
We will use some of
routines that we have written previously. You will need to have the
Diagram window active. Choose Window-Show
Diagram if the diagram is not active and
showing.
-
Choose Window-Show
Functions Palette. The Functions
palette is shown below.
-
On the Functions palette, look for the tool
that will let you choose a vi that has been saved previously. The
tool looks like this:
-
Click on that tool, and navigate to find the
ResetGPIB.vi, and click to open.
Now you can place the ResetGPIB vi on your diagram. Position it generally
to the left on your diagram.
-
Using the same approach, find the Temp1.vi
and click to open. Place it to the right of the ResetGPIB vi on your
diagram. Leave space because we are going to wrap a while loop around
the Temp1 vi.
-
Now, wrap a while-loop
around the Temp1 vi. Choose the Structures
tool on the Functions palette (top left!) You will get a sub-palette
with various programming structures like for-loops. As your mouse
moves across the various objects you get a note at the top about what the
structure is. What you want is the while-loop shown below.
-
Click the while-loop icon and place a while
loop on the diagram, dragging it to enclose the Temp1 vi.
-
Now, the while-loop would execute repeatedly
taking temperature measurements, but they would not be displayed.
To display the measurements, make the Panel the active window. Use
Window-Show Panel if necessary.
Place a String Indicator on the Panel.
When you switch to the Panel from the Diagram, the Functions Palette becomes
a Controls Palette. Normally, string and path indicators are selected
from a sub-palette that you access from the rightmost button in the top
row. Move the mouse over the Controls Palette buttons until you see
String and Path, and click.
-
You still need to connect the output of the
temperature measurement to the indicator. You do that on the Diagram,
so make the diagram the active window. There choose the wiring tool
from the