Hi Allan,
If you provided some numbers, we may be able to nail this issue for you. Without them I will just guess.
The error codes you reported indicate that the app is not keeping up with the incoming data. If you are sampling 4 channels at 50kS/s then the hardware is transfering 200 kS/s into its on board FIFO. Page 344 of the NI catalog indicates that the FIFO can hold 2048 samples before it over-flows. The -10846 error indicates that these over-flows are occuring. To prevent this, the app must completely empty the FIFO more frequently. Doing the math this works out to one empty operation every 10ms maximum.
This is a rather demanding rate. This only addresses the -10846. The -10845 error is troubling. The hardware you are working with may not do the j
ob.
Suggestions:
1) make sure your app is reading at least this often.
2) slow down you Acq rate (I know, not an option)
3) DO NOT TRUST ME! Call NI and talk to their hardware support group and ask them;
a) "Can I do continuous acq from X channels at Y rate using a DAQCard 6024E?"
b)If yes, "Could you point me at an example?"
c)If no, "Can I get credit on this device toward a purchase of a device that can?"
I hope this get you started.
Reply to this answer if you have further inquiries,
Ben