Hi,
If you know the number of bytes you are trying to read, you can set a viRead call to return information once the particular number of bytes have been read. For more information on this, take a look at the KnowledgeBase article on a
Serial VISA Read to read a requested number of bytes.
Even if you read before all bytes have been collected, you should not lose data. When the specified number of bytes are stored in the buffer, the viRead call will send the information to the program, and new data coming in will be stored in the buffer until the byte count is reached again.
I hope this helps,
Lauren L.
Applications Engineering
National Instruments