09-27-2005 11:56 AM
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
09-28-2005
01:17 PM
- last edited on
07-15-2025
05:12 PM
by
Content Cleaner
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.