Creating a Task in NI-DAQmx and Using it in LabVIEW
Table of Contents
The National Instruments Getting Started with NI-DAQmx Series is aimed at helping you learn NI-DAQmx programming fundamentals. Through video and text tutorials, this series will take you from verifying your device's operation in Measurement & Automation Explorer (MAX) to programming data acquisition applications using LabVIEW. It is intended for both the beginner who wants to learn how to use the DAQ Assistant, as well as the experienced user who wishes to take advantage of advanced NI-DAQmx functionality.
Overview
A NI-DAQmx task is a collection of virtual channels, timing and triggering information, and other properties regarding the acquisition or generation.
Each NI-DAQmx task can only include channels of the same type. If your application requires you generate a digital output and an analog input you need to create two tasks, one task for the digital output and one task for the analog input. However, if you are reading two analog inputs you can create one task to read both of these inputs.
Tasks contain all the information needed to acquire or generate a signal. This includes timing information, and triggering information.
We will illustrate how to create an analog input task in Measurement and Automation Explorer, and use it to read in a sine wave. Our example will use the task to generate the code in LabVIEW. Once you have finished with the video you will have an example program you can run in LabVIEW in which you can begin coding.
Before You Watch
-
Open Measurement and Automation Explorer by going to Start >> All Programs >> National Instruments >> Measurement and Automation
-
Open LabVIEW 8.0 Start >> All Programs >> National Instruments >> LabVIEW 8.0 >> LabVIEW.
Video
Reader Comments | Submit a comment »
Typo
In the second paragraph, I'm assuming
you mean same type instead of some
type.
- Mar 3, 2008
Required version of LabVIEW?
The page speaks of using LV v8.0 but it
does not say whether this version (or
later) is REQUIRED. What is the earliest
version of LV that supports this
technique?
- Dec 10, 2006
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
