ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AI Buffer read error 10846

Hi!I need to increase my scan rate to 15000 and when i do so i get the AI buffer read error. It works fine at 1000 scans per sec.I have tried playing with the buffersize and no. of scans read. I am attaching my vi. Is the error because of the for loop present? I am using the PCIMIO16E1 which has maximum sampling rate of 1.25M. I am reading data from 7 channels. I am writing data to two files before and after processing. Can anyone tell me if the method i have used to do that is right? The application is urgent and so i'll be really greatful to anyone who is able to help me here. Thanks!
0 Kudos
Message 1 of 3
(3,153 Views)
When you get this error, it's because you're not keeping up with the scan rate and the buffer is being overwritten. The way to avoid this is to eliminate some of the overhead in your application. One way is to stream binary or scaled data to the files instead of strings. Another would be to avoid doing the matrix math on the acquired signal and do it later when you post-process the saved file. There are shipping examples of streaming binary and scaled data that you can look at and that's what I would try first. For the fastest scan rates possible, you'll probably only be able to stream to a single binary file.
0 Kudos
Message 2 of 3
(3,153 Views)
hey Dennis!

That was quick...thanks a TON!!!I am going to do the processing post acquisition as u have mentioned!I just hope it works fine!

Thanks again!
0 Kudos
Message 3 of 3
(3,153 Views)