10. Top 10 Reasons to Use LabVIEW
for Acquiring Data and
1. Work Faster With Graphical Approach.
2. Take Measurement From Any Sensor or Any Bus.
3. Get started with open and run examples.
4. Measure in Minutes with Express Functions.
11. 5. Call Advanced Analysis Libraries with One Click.
6. Create a Professional User Interface in Seconds.
7. Log Data and Generate Reports in One Easy Step.
8. Distribute Stand-Alone Applications.
9. Do More with a Flexible, Scalable Software Platform.
10. Collaborate and Develop with a Worldwide Community of
• Virtual instruments (VIs) have three main parts — the front panel, the
block diagram, and the icon and connector pane
• The front panel is the user interface of a LabVIEW program and the block
diagram is the executable code
• The block diagram contains the graphical source code composed of
nodes, terminals, and wires
• Place controls (inputs) and indicators (outputs) in the front panel
• Use the Operating tool to manipulate panel objects. Use the
Positioning tool to select, move, and resize panel objects. Use
the Wiring tool to connect diagram objects
• Control terminals have thicker borders than indicator terminals
• Wiring is the mechanism to control dataflow and produce
• Various debugging tools and options available such as setting
probes and breakpoints, execution highlighting, and single
14. Some Applications of LabView
27. Why we used LabVIEW in
Research & Learning
Why we used LabVIEW in
Research & Learning
• Create a richer learning experience with hands on project-based
• Increase performance with multicore programming
• Measure in minutes with tight I/O connectivity
• Use multiple models of computation to solve problem
• Analyze signals with built-in math and signal processing functions
• Explore your measurements by visualizing your signals
• Graphical system design decreases development time
• Save time incorporating Labview with courseware and educational
• Collaborate and develop with a worldwide community of engineers
If automatic tool selection is enabled and you move the cursor over objects on the front panel or block diagram, LabVIEW automatically selects the corresponding tool from the Tools palette. Toggle automatic tool selection by clicking the Automatic Tool Selection button in the Tools palette.
Use the Operating tool to change the values of a control or select the text within a control.
Use the Positioning tool to select, move, or resize objects. The Positioning tool changes shape when it moves over a corner of a resizable object.
Use the Labeling tool to edit text and create free labels. The Labeling tool changes to a cursor when you create free labels.
Use the Wiring tool to wire objects together on the block diagram.
Delivers a vision for engineers to deploy LabVIEW anywhere they want. Continued innovation to enable engineers deploy LabVIEW from workstations to personal computers to distributed systems to embedded applications. Someday soon, we may even see sensors powerful enough to use house LabVIEW.
Not only is LabVIEW everywhere, but it offers something for every scientist and engineer. All levels of users, ranging from experienced to non-programmers, will benefit from the interactive, configurable tools and in LabVIEW 7 Express, enabling LabVIEW to be used as a one integrated tool for measurement and automation throughout the design process.
The block diagram is the “code” for the VI.
Note: Wires can cross each other. You will see dots at the wire junctions, and a small gap in the wire showing that wires do not connect. If dots at wire junctions have been turned off, go to Options (Tools menu)»Block Diagram and select Show dots at wire junctions.
Point out border difference and arrow direction on controls and indicator terminals.
Composed of nodes, terminals, and wires:
Nodes: Program execution elements (analogous to statements, functions, and subroutines).
Functions: Built-in nodes for elementary functions.
SubVIs: VIs you design and later call from the diagram of another VI.
Structures: Control the program flow.
Note: To complete this exercise, you will need the IC temperature sensor available on either the BNC-2120, SCB-68 or DAQ Signal Accessory.
Estimated completion time: 30 minutes.
Instructions: This exercise has three parts.
First, create an icon and connector for Convert C to F.vi (Exercise 1). The icon should remind you of the functionality of the VI (e.g. CF or CtoF). The connector should have one input and one output, allowing a terminal for °C in, and °F out.
Second, create a top level VI that acquires a data point from channel 0 (the temperature sensor) of your DAQ board and allows the user to display the temperature in Celsius or Fahrenheit. To do this you will need to acquire a single data point from your DAQ board and scale it by a factor of 100. This will give you °C. You should have a Boolean switch or button that allows the user to select Celsius or Fahrenheit. If the user selects Celsius, the scaled value should be displayed in a thermometer indicator. If the user selects Fahrenheit, the Celsius value should be passed into Convert C to F.vi (used as a subVI), and the output Fahrenheit value should be displayed.
Hint: Use the Select function in the Comparison palette.
Do not immediately display this slide.
Suggested questions for class participation:
What are the two main windows in the LabVIEW environment?
What do the Panel and Diagram Toolbars contain?
What are the differences between controls and functions? Where are each located?
What are the three palettes in the LabVIEW environment?
What are pop-up menus? How are they used?
How do you get help?
Review slide: The purpose of Lesson One was to introduce the LabVIEW environment and some simple VI concepts, LV help, and debugging techniques.
When in doubt, right click!!
See the tips and tricks and the end of the chapter to practice.