LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous, multi-channel DAQ with CVI

I am trying to do multi-channel, continuous, double-buffered analog acquisition using NI-DAQ calls
from CVI 5.01 (for NT), and an AT-MIO-64E-3.
The closest example I found was DAQdb.c in
\cvi\samples\daq\AI.
This does single-channal acquisition, and works with
my hardware. In the comments it says for multi-channel
acquisition, you replace the call to DAQ_Start() with
a call to SCAN_Start. There must be more to it than that. At a mimimum, I'd think you need a call to
SCAN_Setup().
I've tried adding calls to those two functions (with
the necassary channel and gain arrays), but keep
getting error -10634 from DAQ_DB_HalfReady(), that says
there isn't a continuous acquisition going on. I don't
know what I need to include,
or where I need to put it
in the code.

Can anyone show me the necessary mods to take that
example into the multi-channel mode, or point me to an
example for continuous, db, multi-channel scanning using those low-level NIDAQ functions?

Thanks very much!!!
Steve Chapman
Arkansas Children's Hospital
mod
0 Kudos
Message 1 of 2
(3,084 Views)
There is an example available here that should help you. It continuously acquires 5 channels of data from an E-series board and plots 2 channels to a graph.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,084 Views)