A. About This Course
This course teaches you how to use LabVIEW to develop test and measurement, data acquisition, instrument control, datalogging, measurement analysis, and report generation applications. This course assumes that you are familiar with Windows, Mac OS, or UNIX and that you have experience writing algorithms in the form of flowcharts or block diagrams.
The course is divided into lessons, each covering a topic or a set of topics. Each lesson consists of the following:
- An introduction that describes the purpose of the lesson and what you will learn
- A description of the topics in the lesson
- A set of exercises to reinforce those topics. Some lessons include optional and challenge exercise sections or a set of additional exercises to complete if time permits.
- A summary that outlines important concepts and skills taught in the lesson
Several exercises in this manual use one of the following National Instruments hardware products:
- A plug-in multifunction data acquisition (DAQ) device connected to a DAQ Signal Accessory containing a temperature sensor, function generator, and LEDs
- A GPIB interface connected to an NI Instrument Simulator
If you do not have this hardware, you still can complete most of the exercises. Be sure to use the demo versions of the VIs when you are working through exercises. Exercises that explicitly require hardware are indicated with an icon, shown in Figure 1. You also can substitute other hardware for those previously mentioned. For example, you can use a GPIB instrument in place of the NI Instrument Simulator, or another National Instruments DAQ device connected to a signal source, such as a function generator.
B. What You Need to Get Started
Before you use this course manual, ensure you have all the following items:
- (Windows) Windows 98 or later installed on your computer; (Mac OS) System 10.2 or later for Mac OS X, System 9.1 or later for OS 9.x or earlier; (UNIX) Sun workstation running Solaris 2.5.1 or later and X Window System server, such as OpenWindows, CDE, or X11R6, or a PC running Linux kernel 2.0.x or later for Intel x86 processors
- (Windows) Multifunction DAQ device configured as device 1 using Measurement & Automation Explorer (MAX)
- DAQ Signal Accessory, wires, and cable
- GPIB interface
- NI Instrument Simulator and power supply
- LabVIEW Full or Professional Development System 7.0 or later.
This course assumes you are using the default installation of LabVIEW. If you have changed the palette views from the default settings, some palette paths described in the course may not match your settings. To reset palette views to LabVIEW defaults, select Tools»Options and select Controls/Functions Palettes from the top pull-down menu. Set Palette View to Express and set Format to Standard. Click the OK button to apply the changes and close the dialog box.
- A serial cable
- A GPIB cable
- (Optional) A word processing application such as Notepad or WordPad
- The following files provided
| Filename |
Description |
| Exercises |
Folder for saving VIs created during the course and for completing certain course exercises; also includes subVIs necessary for some exercises |
| nidevsim.zip |
Zip file containing the LabVIEW instrument driver for the NI Instrument Simulator (Contained in Exercises.zip) |
| Solutions |
Folder containing the solutions to all the course exercises |
C. Installing the Course Software
Complete the following steps to install the course software.
- Copy the contents of the nidevsim directory to the labview\instr.lib directory. After you start LabVIEW, the NI DevSim instrument driver is located on the Functions»Input»Instrument Drivers palette.
- Copy the Exercises directory to the top level of the C: directory.
- Copy the Solutions directory to the top level of the C: directory.
D. Course Goals and Non-Goals
This course prepares you to do the following:
- Understand front panels, block diagrams, icons, and connector panes
- Use the programming structures and data types that exist in LabVIEW
- Use various editing and debugging techniques
- Create and save VIs so you can use them as subVIs
- Display and log data
- Create applications that use plug-in DAQ devices
- Create applications that use serial port and GPIB instruments
This course does not describe any of the following:
- Every built-in VI, function, or object; refer to the LabVIEW Help for more information about LabVIEW features not described in this course
- Analog-to-digital (A/D) theory
- Operation of the serial port
- Operation of the GPIB bus
- Developing an instrument driver
- Developing a complete application for any student in the class; refer to the NI Example Finder, available by selecting Help»Find Examples, for example VIs you can use and incorporate into VIs you create
Note:
If you need assistance beyond that provided in this course, you can post a message to the National Instruments discussion forums at: http://forums.ni.com/
"A full introductory course on programming with LabVIEW."