04-11-2023 01:03 PM
I have a PXIe-6393 in a PXIe-1090 chassis. I want to read 8 ai channels at 14 MS/s however when I try to do so I get error -200361 (buffer overflow). The chassis is connected to a computer via usb-c. If I reduce the sample rate to 1 MS/s I do not get the buffer overflow.
Is this card not rated to sample 8 channels simultaneously at 14 MS/s or am I making some sort of error?
04-11-2023 01:22 PM
Without looking at your implementation using DAQmx, I cannot comment if it is a hardware limitation or software inefficiency/bug.
04-11-2023 01:29 PM
The implementation is attached.
04-11-2023 01:47 PM
Try the steps in Error -200361: Buffer Overflow Error
Understanding and Avoiding NI-DAQmx Overwrite and Overflow Errors
04-11-2023 07:28 PM
Yes, definitely looks like a software implementation issue.
You should not be logging to file within the read loop as it slows down the rate at which you can read data. Moreover, you need to read 0.1s worth of samples for every loop and not a fixed amount.
Ideally use the DAQmx TDMS logging to log a file with no additional effort, or look at producer consumer architecture to acquire data in producer loop and log in the consumer loop.