08-18-2014 09:31 AM - edited 08-18-2014 09:32 AM
You won't. As i stated in my post way ago: VISA read/write have a configurable timeout on their own!
Norbert
EDIT: So please simply delete the "observer" loop as it is completely unnecessary.
08-18-2014 09:39 AM
@mnx wrote:
Thanks crossrulz..:-)this I have to put in 2nd while loop is it??.. And how will I monitor the timeout??
No second loop needed. No first loop even needed for that matter. This code will replace both of your loops. Doesn't that look so much easier?
The VISA Read will throw an error if there is a timeout. That timeout value is whatever you set when you configured the serial port.
09-01-2014 03:40 AM