




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A chapter from the labview getting started manual, focusing on editing ni-daqmx tasks and using other labview features. It covers topics such as communicating with instruments, acquiring and parsing information, wiring commands, and using various labview controls and indicators. It also provides instructions for creating custom indicators and modifying the front panel.
Typology: Lab Reports
1 / 102
This page cannot be seen from the preview
Don't miss anything!
TM
Getting Started with LabVIEW
August 2006 323427C-
Support
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
Worldwide Offices
Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 7838, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 41190000, Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400, Lebanon 961 0 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793, Netherlands 31 0 348 433 466, New Zealand 0800 553 322, Norway 47 0 66 90 76 60, Poland 48 22 3390150, Portugal 351 210 311 210, Russia 7 095 783 68 51, Singapore 1800 226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 886 02 2377 2222, Thailand 662 278 6777, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter the info code feedback.
© 2003–2006 National Instruments Corporation. All rights reserved.
DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS. BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.
Contents
Conventions ...................................................................................................................ix
Contents
© National Instruments Corporation vii Getting Started with LabVIEW
Visually Comparing Two Voltage Readings...................................................4- Communicating with an Instrument ..............................................................................4- Finding and Installing Instrument Drivers (Windows and Linux) ..................4- Selecting an Instrument Using the Instrument I/O Assistant ..........................4- Acquiring and Parsing Information for an Instrument ....................................4- Wiring a Command to an Instrument ..............................................................4- Summary ........................................................................................................................4- DAQ Assistant Express VI..............................................................................4- Tasks................................................................................................................4- Instrument Drivers...........................................................................................4- Instrument I/O Assistant Express VI...............................................................4-
All Controls and Indicators............................................................................................5- All VIs and Functions ....................................................................................................5- VIs ...................................................................................................................5- Functions .........................................................................................................5- Data Types .....................................................................................................................5- Dynamic Data Type.........................................................................................5- When to Use Other LabVIEW Features ........................................................................5-
About This Manual
Getting Started with LabVIEW x ni.com
monospace bold Bold text in this font denotes the messages and responses that the computer automatically prints to the screen. This font also emphasizes lines of code that are different from the other examples.
Platform Text in this font denotes a specific platform and indicates that the text following it applies only to that platform.
right-click (Mac OS) Press
Related Documentation
The following documents contain information that you may find helpful as you read this manual:
© National Instruments Corporation 1-1 Getting Started with LabVIEW
Getting Started with LabVIEW
Virtual Instruments
LabVIEW programs are called virtual instruments, or VIs, because their appearance and operation imitate physical instruments, such as oscilloscopes and multimeters. LabVIEW contains a comprehensive set of tools for acquiring, analyzing, displaying, and storing data, as well as tools to help you troubleshoot code you write.
In LabVIEW, you build a user interface, or front panel, with controls and indicators. Controls are knobs, push buttons, dials, and other input mechanisms. Indicators are graphs, LEDs, and other output displays. After you build the user interface, you add code using VIs and structures to control the front panel objects. The block diagram contains this code.
You can use LabVIEW to communicate with hardware such as data acquisition, vision, and motion control devices, as well as GPIB, PXI, VXI, RS232, and RS485 instruments.
Building a Virtual Instrument
In the following exercises, you will build a VI that generates a signal and displays that signal in a graph. After you complete the exercises, the front panel of the VI will look similar to the front panel in Figure 1-1.
You can complete the exercises in this chapter in approximately 40 minutes.
Chapter 1 Getting Started with LabVIEW Virtual Instruments
© National Instruments Corporation 1-3 Getting Started with LabVIEW
Figure 1-2. Getting Started Window
The Getting Started window disappears when you open an existing file or create a new file. The Getting Started window reappears when you close all open front panels and block diagrams. You also can display the window from the front panel or block diagram by selecting View»Getting Started Window.
LabVIEW provides built-in template VIs that include the subVIs, functions, structures, and front panel objects you need to get started building common measurement applications.
Complete the following steps to create a VI that generates a signal and displays it on the front panel.
Chapter 1 Getting Started with LabVIEW Virtual Instruments
Getting Started with LabVIEW 1-4 ni.com
Figure 1-3. New Dialog Box
Chapter 1 Getting Started with LabVIEW Virtual Instruments
Getting Started with LabVIEW 1-6 ni.com
Figure 1-4. Controls Palette
Chapter 1 Getting Started with LabVIEW Virtual Instruments
© National Instruments Corporation 1-7 Getting Started with LabVIEW
The block diagram has a blue icon labeled Simulate Signal. This icon represents the Simulate Signal Express VI. The Simulate Signal Express VI simulates a sine wave by default.
Complete the following steps to change this signal to a sawtooth wave.
Chapter 1 Getting Started with LabVIEW Virtual Instruments
© National Instruments Corporation 1-9 Getting Started with LabVIEW
To use the knob to change the amplitude of the signal, you must connect two objects on the block diagram.
Complete the following steps to wire the knob to the Amplitude input of the Simulate Signal Express VI.
Chapter 1 Getting Started with LabVIEW Virtual Instruments
Getting Started with LabVIEW 1-10 ni.com
Running a VI executes the solution.
Complete the following steps to run the Acquiring a Signal VI.