05-16-2014 01:54 PM
Hello, I am using the command readbytearray to read values from my instrument (hp8902). Once in a while the read hands up. I have set the iotimeout to 1s, but it never aborts. How can i force and arbort of the readbyte array?
Thanks,
RJJ
05-19-2014 02:30 PM
Hi there,
Make sure the call is outside an infinitely loop. After the timeout the function should error out but if the error is not being catch then that may be another cause. Since ReadByteArray is part of the VISA driver check if there is not another error involved using the IO trace tool.
I hope this helps
05-19-2014 04:46 PM
Alejandro,
Using the IO trace, the last command out is a read to the receiver. The receiver never replies to the laptop. How can I force a timeout error?
I added a timer, but the timer never goers off either.
Thanks,
RJJ
05-20-2014 03:05 PM
You can play with the openTimeout parameter on viOpen to setup the time period before generating an error.
I encourage you to take a look at the examples (Document ID: 2HH9BUQS shows where to find them on your PC), they can give you ideas for error catching.