09-26-2018 01:51 PM
I am using the NI VISA library ReadByteArray method to read approx. 100,000 bytes. I am receiving a timeout exception, which I believe is caused by not enough bytes being received before timeout occurs. Is there anyway to programatically get the number of bytes that were received before a timeout? Or the number of bytes available before the ReadByteArray executes?
09-27-2018 09:30 AM
d61218,
There is no way to get the amount of bytes read if an exception is thrown. The only thing that I can suggest is to read smaller arrays and append them if you need all of that data in one array.