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

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

Performing Triggered Digital IO with an M Series Device in LabVIEW

1 ratings | 5.00 out of 5
Print

Downloads

Filename: m_series_triggered_dio.vi
Requirements: View

The M Series of National Instruments MIO data acquisition products includes the capability to synchronize digital input and output with other operations. "Correlated Digital IO" enables the coupling of buffered digital tasks with the analog, counter/timer, or external clocks. The Digital I/O subsystem does not have its own internal clock source, and therefore, an external signal or clock from another subsystem on the board must be provided - thus correlating the digital data to this signal. Because the digital subsystem of an M Series device does not have its own dedicated timing engine, it also cannot be configured for a trigger. However, you can configure the original source of your digital clock for a trigger, and therefore, trigger your digital operation as well. This example program illustrates how to perform a finite, buffered, digital input task correlated to a concurrent analog input task that is started by a digital edge.

1. Create virtual channels for the analog and digital input channels
2. Configure the master sample clock (in this case, analog input)
3. Select the timing source for the digital acquisition (M Series digital can be correlated to the analog, counter/timer, and external clocks)
4. Begin the digital task, preparing it to start with the master
5. Configure the analog task for digital edge triggering
6. Begin the analog task (the master in this case)
7. Read data from the analog and digital tasks and graph the results
8. Clear the tasks to free memory and display any errors

Requirements


Filename: m_series_triggered_dio.vi

Software Requirements


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

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: PCI-6220, PCI-6221, PCI-6222, PCI-6224, PCI-6229, PCI-6284, PCI-6251, PCI-6254, PCI-6259, PCI-6280, PCI-6281, PCI-6250
Driver: NI-DAQmx 7.3

 
1 ratings | 5.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/).