Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

timing problems with multiple NI USB-6008

hi,
I am having problems sampling multiple USB-6008 devices with one PC, can you help?
 
I am using C++ to configure multiple devices with the following header file
 
see attachment

I am then creating (up to) three objects with the following statements:

 //create ADC input configuration (pass an ID number)
 myAIConfig = new AIConfig(ID);
 myAI = newAI();
  
 myAI->configure(myAIConfig);
 //start (short sample_frequency, int tbuf, short nchannels)
 myAI->start(100, 1, NUM_CHANNELS);

The problem is that the first ADC provides a reading, but the 2nd and 3rd ADCs are buffering their data, and hence lagging behind changes in the voltages.  The buffering increases with the sample frequency pointing to the fact that the buffer is being filled quicker and data is persisting, but i cannot reduce the time_buf variable to below 1 second.  Is there a variable I am not setting, or is there another way I can remove the buffer?

Thanks for your help

Cheers, Marc


0 Kudos
Message 1 of 2
(2,950 Views)

Hello Marc,

What driver are you using for these USB-6008s?  With the latest release of NI-DAQmx (7.5), the USB-6008 is supported.  Try downloading NI-DAQmx 7.5.  Then take a look a the shipping examples which are installed at: C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In .

You can download NI-DAQmx 7.5 from:  http://digital.ni.com/softlib.nsf/websearch/CF7ECCEA4C4CC7DE86257038004D88AE?opendocument&node=132060_US 

Do you run into the same problem with these example programs? 

Let me know your results.

Regards,
Sean C.

 
0 Kudos
Message 2 of 2
(2,937 Views)