Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 26, 2006

NI-DAQmx: Continuously Acquire Analog Input Data Using a Buffer and a Hardware Analog Trigger

0 ratings | 0.00 out of 5
Print

Downloads

Filename: 200016.vi
Requirements: View

Using the NI-DAQmx VIs, this program continuously acquires data from one or more analog input channels when a hardware analog trigger occurs. This is a timed acquisition, meaning that a hardware clock is used to control the acquisition rate for fast and accurate timing. It is also a buffered acquisition, meaning that the data is stored in an intermediate memory buffer after they are acquired from the DAQ board. Data are retrieved from that buffer and displayed on the graph.
Use this VI when you want to continuously acquire data when an analog trigger occurs.

INSTRUCTIONS:
1. Enter the analog input channels, trigger channel, scan rate, and scans to read at a time.
2. Enter the trigger slope, trigger level, and time limit.
3. Make the appropriate I/O connections as explained below.
4. Run the VI.

KEY PARAMETERS:
This VI shows how to use the DAQmx VIs to hardware analog trigger a continuous acquisition.
With M or E Series devices, if your analog trigger signal is connected to one of the analog input channels, that channel must be first in the scan list of channels. If you are using named channels, the trigger channel must be the first channel in the actual hardware channel order, which may or may not be the first channel in the channel string control. This restriction does not apply if you connect the analog trigger signal to PFI0.

I/O CONNECTIONS:
Connect to the input channels on the I/O connector for your board to match the channel you have chosen on the front panel of this VI. For example Dev1/ai0 for analog input channel 0.
To find the actual pin numbers, refer to your hardware user manual.

DAQ VIs USED:
DAQmx Create Virtual Channel.vi, DAQmx Timing.vi, DAQmx Trigger.vi, DAQmx Start.vi, DAQmx Read.vi, DAQmx Clear.vi

Requirements


Filename: 200016.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: PCI-6024E, PCI-MIO-16XE-50, PCI-6025E, PCI-6031E, PCI-6032E, PCI-6033E, PCI-6034E, PCI-6035E, PCI-6036E, PCI-6040E (PCI-MIO-16E-4), PCI-6052E, PCI-6053E, PCI-6071E, PCI-6220, PCI-6221, PCI-6221 (37-Pin), PCI-6222, PCI-6224, PCI-6229, PCI-6250, PCI-6251, PCI-6254, PCI-6259, PCI-6280, PCI-6281, PCI-6284, PCI-MIO-16E-1, PCI-MIO-16E-2, PCI-MIO-16XE-10, PCI-6023E
Driver: NI-DAQmx 8.3

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program 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 program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM 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/).