Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneously acquiring digital & analog data

Hello,
I'd like to simultaneously acquire digital and analog data from a PCI-6023E card, prefferably by double-buffering the inputs, so I can gather data at a 10ms rate. Is this possible with the 6023E, or will I run out of counters (I know SCAN_Start uses both Counter 0 and Counter 1 for the analog input timing)?
0 Kudos
Message 1 of 3
(2,656 Views)
You can simultaneously acquire period info using a gated counter and analog
A/D. You are limited to 2^24-1 samples as one counter must be used for the
A/D and the second for the gated counter. I don't have experience with
other mixed analog/digital applications.

Duncan

"DrewH" wrote in message
news:506500000008000000DE7C0000-1042324653000@exchange.ni.com...
> Hello,
> I'd like to simultaneously acquire digital and analog data from a
> PCI-6023E card, prefferably by double-buffering the inputs, so I can
> gather data at a 10ms rate. Is this possible with the 6023E, or will
> I run out of counters (I know SCAN_Start uses both Counter 0 and
> Counter 1 for the analog input timing)?
0 Kudos
Message 2 of 3
(2,656 Views)
I think I ought to clear up some confusion here. Scanning the analog inputs of the 6023E board does not use up counter 0 and 1. The board has reserved timers for this purpose. You can use counters 0 and 1 at the same time an analog acquisition is taking place if you want.

Also, the maximum number of samples you can acquire probably needs some clarification. In the NI-DAQ Function Reference Manual the SCAN_Start() function mentions the 2^24 limitation on the size of count. So yes, for a finite acquisition there is a limit. However, if it is a double buffered (ie. continuous) acquisition "count" is just the size of the buffer. You can actually acquire an infinite number of samples.

Now addressing another issue... You should have no problem acquiring the a
nalog data at that rate. However, the digital port on the 6023E does not support "stobed" or "clocked" I/O. These lines support only static, software-timed read/writes. For this sort of operation, you will need a 650x or 653x series board in addition to your 6023E. Alternatively, you could use the 6025E board which contains digital lines with the same functionality as the 650x boards.

I hope this helps!

Russell
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 3 of 3
(2,656 Views)