LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I fix a Error 10016 invalid read count in Labview

This is an occasional error that crashes my program, but I'm not sure how to fix it, or if it can be fixed. The error is unpredictable when it will occur.
0 Kudos
Message 1 of 2
(2,668 Views)
Without seeing your code, or knowing more about the problem, you probably aren't going to get an answer.

I can suggest the following: isolate the error. Put in an error handling subVI that will isolate this error to a specific location. This is going to take some work on your part, and will likely be difficult.

To get you in the right direction, I believe that this is caused when data is being read. This may be because the amount of data you request to be read does not equal what is in the buffer. This can be for a lot of reasons. If you have trouble isolating the problem, try changing your read scheme. Perhaps a circular buffer would work. There are examples in the Examples Database in LabVIEW on how to do this.
0 Kudos
Message 2 of 2
(2,668 Views)