Lab V I E W: - Labview - Oratory Irtual Nstrument Ngineering Orkbench
Lab V I E W: - Labview - Oratory Irtual Nstrument Ngineering Orkbench
Lecture I: Introduction
• In classical experiments…
– Data from sensors are sent to a meter or gauge, read by the
experimenter, and recorded by hand in a logbook
– The experimenter must always be present to take the data
unless using a chart recorder etc.
• What if paper or tapes are lost / soiled!
• Difficult to post process
• In automated experiments…
– Data acquisition systems measure and record directly to disk
• The benefits of automated systems are tremendous
– Increased frequency with which measurements can be taken
– Potential to automate pre and post processing and build in
quality control
– Remote accessibility to data
• Software (LabVIEW in our case) controls the
automated data acquisition and processing
main()
{
int a, b, c;
c = a + b;
return 0;
}
Interface/Output
Indicators (outputs)
• Only one of the two windows (front panel or block diagram) is active at any
point in time. To activate one simply mouse over it and click
• To display any of the pallets (tools, controls, or functions) you can use the pull
down menus or simply left or right click your mouse
• The controls and functions palettes
• Links to libraries of built-in LabVIEW functions
• Simply browse to find the function you want and drop it on the front
panel or block diagram
Functions Palette
Controls Palette
(For Block Diagram)
(For Front Panel)
Tools Palette
• Floating Palette
• Used to operate and modify front
panel and block diagram objects
• Finding Errors
Double Click on the “broken” run button and a
window describing the detected error appears.
• Execution Highlighting (“light bulb” mode)
Click on the execution highlighting button. The data
flow is now shown in real time and is animated using
bubbles. Present values are displayed on wires.
• Probes
Right-click on a wire to display a probe which shows
data as it flows through wire segment.
You can also select Probe tool from Tools palette and
click on wire.
messy
• Now the example VI is complete and you can play with it by entering the
numbers of your choice into the # of bins control and the # of loops control
and pressing the run button.