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