Labview Manual - Basics
Labview Manual - Basics
Click Create Project. You will be asked to open a starting point for your project.
Double-Click Blank VI. You should get these windows:
1|Page
This is the Front Panel Window and the Block Diagram Window. Later we will familiarize
ourselves on how they function.
III. Front Panel Familiarization
This is the Front Panel Window. Its function is comparable to a GUI (Graphical User
Interface). All of the things that you can see here is often the result of what you want to do that is
determined by your Block Diagram (will be discussed later). However, in order to have functions
on your Front Panel, Use the Controls Palette.
IV. Controls Palette
LabViEW 2012 SP1 User Manual
2|Page
On your front panel, click the VIEW button on the menu bar.
Click CONTROLS PALETTE. You should have a window something like this:
2. FAST LANE
You can achieve this by simply right clicking on the field of your Front Panel.
By doing so, you can have an option that is very similar to what is shown in the first
method.
V. Indicators
LabViEW 2012 SP1 User Manual
3|Page
In your Controls Palette, there are a number of indicators to be used. In this tutorial, we are going
to use the Numeric button.
FACT:
LabViEW 2012 SP1 User Manual
4|Page
Numeric controls and indicators are the simplest way to enter and display numeric data. You can resize
these front panel objects horizontally to accommodate more digits.
The purpose of Numeric Indicator is to show the results of the operation that is a number. It
is used mainly in mathematical operations. Consider both the Sum and Average Numeric
Indicators.
5|Page
Here are some more examples of Indicators that you can use. All of which can be found in
the Controls Palette of your Front Panel.
6|Page
H
over your
pointer on
the
Numeric
Button
(Red and
Numbers).
7|Page
Click the Numeric Indicator shadow on the Front Panel field. From this time on, this step is
needed to be done twice.
8|Page
Next is the Numeric Control Button. Right-click on the Front Panel Field. Click
Numeric>Numeric Control. You need to do this twice.
9|Page
This part of the tutorial needs to use the Block Diagram Window. You can access it by
hitting CTRL + E on your keyboard. You should get a window like this:
10 | P a g e
Right-click on the Block Diagram Field. Go to Numeric then click the ADD button.
We need to add a constant (2) for the average output. Right-click on the Block Diagram
Field. Go to Numeric then click the Numeric Constant button. Set it in 2 by typing inside the
Numeric Constant.
11 | P a g e
Connect the
input to the ADD operator by
clicking INPUT A then the ADD. Click on the first node. Do the same for the INPUT B but
now clicking on the second node of ADD. You should get something like this.
The node on the pointy edge of the operator should be connected to the SUM.
Test what you did on your Front Panel. Hit CTRL + E on your keyboard. Input any number
that you want in your Numeric Controls. After inputting, click the run button just below the
Edit button on your option bar.
12 | P a g e
On
the Block
Diagram, right-click on the Block Diagram Field. Go to Numeric then click the DIVIDE
button. Connect it to the SUM and to the Numeric Constant. The pointy-edge node should
be connected to the AVERAGE. Test everything you did on the Front Panel Window.
13 | P a g e
There are two types of passing data into and out of a loop. These are Tunneling and Auto
Indexing. Tunnels are created because data values enter and exit the loop structure through it. On the
other hand, Auto Indexing works if you wire an array to a For Loop or While Loop, you can read and
process every element in that array by enabling this. When you wire an array from an external node to an
input tunnel on the loop border and enable auto-indexing on the input tunnel, elements of that array enter
the loop one at a time, starting with the first element.
Accessing Arrays in LabView is similar with others. Here are some examples of loop
structures:
14 | P a g e