Professional Documents
Culture Documents
Wei Lin
Department of Biomedical Engineering
Stony Brook University
Instructors Portion
Summary
This experiment requires the student to use NI-DAQmx to acquire voltage
signals. Students should be familiar with the following LabVIEW
programming technique
1.
2.
3.
4.
NI-DAQmx
LabVIEW application for data acquisition
LabVIEW graph and chart
LabVIEW write LabVIEW measurement file express VI
Uses
This lecture applies to all courses of virtual instrumentation.
Equipment List
Computers
LabVIEW 8.6
References
Students Portion
Introduction
The students should learn the basic LabVIEW programming techniques
for the data acquisition using NI-DAQmx. They will create two VIs, one
for finite samples and the other for continuous samples. Students will use
graph and chart indicator to display acquired signals on the screen and
save the data in files for future analysis.
Objectives
NI-DAQmx Functions
Data acquisition programming using NI-DAQmx
LabVIEW graph and chart
Theory
NI-DAQmx is the next generation drivers for the data acquisition hardware
from National Instruments. It is easy to use and has many new features such
as improved ease of use, faster development time, multithreaded
measurements and increased accuracy of measurements. The data acquisition
application in LabVIEW and NI-DAQmx is quite straightforward. The
following are the steps for creating such an application.
1. Create a virtual channel and task using the NI-DAQmx Create
Virtual Channel VI.
2. Set the sampling frequency and sampling mode, continuous or
finite samples using NI-DAQmx Timing VI.
3. Set the trigger using NI-DAQmx Trigger VI. This step is optional.
4. Start the data acquisition process using NI-DAQmx Start VI.
5. Read the acquired data using NI-DAQmx Read VI.
6. Stop data acquisition task.
7. Clear the data acquisition task using the NI-DAQmx Clear VI.
All the NI-DAQmx VIs are linked through task in and task out terminal and
the error cluster chain. For continuous samples mode, the NI-DAQmx Read
VI should be placed within a while loop.
Lab Procedure
Experiment 1, Create a LabVIEW data acquisition application of
finite samples:
1.
2.
2.
3.
4.
5.
Lab Report
The lab report should contain the following:
1. The experiment objective
2. Explain how to write a data acquisition application using LabVIEW.
Please also describe the physical channel, virtual channel, task and
their relationship.
3. Data (collected signal)
4. LabVIEW VIs with documentation
Lab report due on 10/17/2009
Appendix
1. VI for finite data acquisition