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

DAQmx - Continuous Read Digital Channel in Burst Mode - LabVIEW - CVI - ANSI C - VB.NET

1 ratings | 4.00 out of 5
Print

Downloads

Filename: 3047.vi
Requirements: View

Filename: contreaddigchanburst_vbnet.zip
Requirements: View

Filename: contreaddigchanburst_c.zip
Requirements: View

Filename: contreaddigchanburst_cvi.zip
Requirements: View

This example can only be used with the DIO-32HS and 653x series devices that support burst mode handshaking. The example demonstrates how to transfer data from an external device to your 653x board using the burst handshaking protocol. The burst protocol is a synchronous handshaking protocol, that is, the 653x and the external device share a clock signal (over the PCLK line) as well as the ACK and REQ handshaking signals.

Note: This example program exports the sample clock from the device to be used by an external device.

INSTRUCTIONS:
1. Set the desired physical channels and samples per buffer.
2. Set the PCLK output terminal, frequency and pulse polarity.
3. Set the handshaking parameters: ready for transfer event active level and pause trigger polarity.
4. Make the appropriate I/O connections as explained below.

I/O CONNECTIONS OVERVIEW:
Connect the data lines of the ports you specified to the data lines of the external device.

Burst input handshaking involves three connections: ACK, REQ, and PCLK. The 653x and the external device share a clock signal over the PCLK line. The 653x asserts ACK if it is ready to input data. If the external device also asserts REQ indicating it has valid new data on the data lines, the 653x latches data on the rising edge of the PCLK signal.

If your port list is 0, 0:1, or 0:3 connect your signals to ACK1, REQ1, and PCLK1, otherwise connect them to ACK2, REQ2, and PCLK2.

Requirements


Filename: 3047.vi

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Language(s): Visual Basic .NET, C, Visual C++, LabVIEW
Additional Software: Visual Studio .NET 2003

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PCI-6534, PXI-6533, PXI-6534, PCI-6533
Driver: NI-DAQmx 7.4

 
Filename: contreaddigchanburst_vbnet.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 7.1
Language(s): Visual C++, C, LabVIEW, Visual Basic .NET
Additional Software: gcc/g++/cc, Visual C++ 6.0

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PXI-6534, PCI-6534, PCI-6533, PXI-6533
Driver: NI-DAQmx 7.4

 
Filename: contreaddigchanburst_c.zip

Software Requirements


Language(s): C, LabVIEW, Visual Basic .NET, Visual C++

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PCI-6534, PCI-6533, PXI-6533, PXI-6534
Driver: NI-DAQmx 7.4

 
Filename: contreaddigchanburst_cvi.zip

Software Requirements


Language(s): C, LabVIEW, Visual Basic .NET, Visual C++

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PCI-6534, PCI-6533, PXI-6533, PXI-6534
Driver: NI-DAQmx 7.4

 
1 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

Thanks for the CVI sample code Next time, please make sure to exclude from the zip file the .cdb and .exe files. Indeed, they are unnecessary, since CVI will recreate them anyway. In addition this make the zip file big. FYI without this 2 files the zip file is now around 9kB on my hard disk :-) Regards, Philippe
- Philippe BAUCOUR, The CVI Rebel Site. philippe.baucour@wanadoo.fr - May 9, 2005

 

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/).