Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

6024E - Error 10846: Unable to retrieve data fast enough error?

I am using a PCMCIA DAQ 6024E on a Dell Latitude C610 (1Ghz) - I'm trying to do Double buffered analog acquisition over 4 channels
Whenever I try to run the application (VC++6) i get "Error 10846 - Unable to retrieve data from the backgound acquisition buffer fast enough..."
I have tried the sample program "Double-Buffered Asynchronous Scanning in Microsoft Visual C++ with NI-DAQ" downloaded from the NI website - has the same result: Error 10846...

I just need to sample 4 channels at 1kHz continuously, extracting the data every 250ms max - are the following settings sensible:
i16 iChan = 0;
i16 iNumChans = 4;
u32 ulCount = 2000
i16 iUnits = 0;
f64 dSampRate = 4000.0;
f64 d
ScanRate = 1000.0;
static i16 piBuffer[2000] = {0};
static i16 piHalfBuffer[1000] = {0};
Tried loads of different variations - as well as stopping all other apps running and removing everything from inside the acquisition loop - don't know what to try next. Can anyone help? Cheers!
0 Kudos
Message 1 of 2
(2,493 Views)
Hi,

The error you are getting is due to the fact that your application is not emptying the PC buffer fast enough so new data overwrites old data before they are copied to the application allocated memory. You can try increasing the buffer size and/or reducing the Scan rate, whichever possible.

Regards,
RamziH.
0 Kudos
Message 2 of 2
(2,493 Views)