M Series Correlated Digital Input with Analog Input Sample Clock in ANSI C
*
* ANSI C Example program:
* Correlated DIO AI_Sample_Clock Dig Start.c
*
* Example Category:
* DI
*
* Description:
* This example demonstrates how use any M Series MIO card to acquire
* a finite amount of digital data using a digital start trigger and
* hardware timing provided by a concurrently running analog input
* task.
*
* Instructions for Running:
* 1. Select the Physical Channel to correspond to where your
* signal is input on the DAQ device.
* 2. Select how many Samples to Acquire on Each Channel.
* 3. Set the Rate of the Acquisition.
* 4. Select the Source and Edge of the Digital Start Trigger
* for the acquisition.
*
* Steps:
* 1. Create analog input and digital input tasks.
* 2. Create a digital input channel and an analog input channel.
* 3. Define the parameters for an External Clock Source from the
* internal analog sample clock signal. Additionally, define
* the sample mode to be Finite.
* 4. Define the parameters for a Digital Edge Start Trigger.
* 5. Call the Start function to begin the acquisition.
* 6. Use the Read function to retrieve the waveform. Set a timeout
* so an error is returned if the samples are not returned in
* the specified time limit.
* 7. Call the Clear Task function to clear the tasks.
* 8. Display an error if any.
*
* I/O Connections Overview:
* Make sure your signal input terminal matches the Physical
* Channel I/O Control. Also, make sure your digital trigger
* terminal matches the Trigger Source Control. For further
* connection information, refer to your hardware reference manual.
*
*********************************************************************/
Requirements
Filename: 4673.zip
Software Requirements
Language(s): C
Additional Software: Visual C++ 6.0
Hardware Requirements
Hardware Group: Multifunction DAQ (MIO)
Hardware Model: PCI-6221, PXI-6289, PCI-6222, PCI-6224, PCI-6225, PCI-6229, PCI-6230, PCI-6250, PCI-6251, PCI-6254, PCI-6259, PCI-6280, PCI-6281, PCI-6284, PCI-6289, PXI-6221, PXI-6230, PXI-6224, PXI-6225, PXI-6229, PXI-6250, PXI-6251, PXI-6254, PXI-6259, PXI-6280, PXI-6281, PXI-6284, PCI-6221 (37-Pin)
Driver: NI-DAQmx 7.5
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/).
