01-31-2013 05:47 PM
Hello everyone,
While writing some communication with GPIB support devices, sometimes you have to implement some "time delay" to let the device become ready to response to the controller (Or something like that, this is my guess, I am not sure about the technical issue). I see the same thing in an example named as"LabVIEW- GPIB.VI" in LabVIEW Find Example. Since the delay is not consistent in all computer, is there any thing like handshaking or CRC code to make a more fail-safe and secure communication?
I guess I get to use "GPIB Wait" or "Wait for RQS", but I am not sure.
Does anyone have any idea about this issue? It would be appreciated.
01-31-2013 06:07 PM
02-05-2013 12:34 AM
Hi Dennis,
Thanks a lot for your kind help. I got everything you said but just need more help about one issue. How can I use VISA timeout you tackle with this problem? I could not find a relation between these two!
02-05-2013 06:42 AM
You set the VISA timeout to something much greater than the amount of time you expect for the measurement/response to come back. I think the default timeout is 10seconds. If you leave the timeout at that, you should be just fine for most measurements. Just send your command and then try to read. If it takes more time than the timeout allows, you will get an error. Either you sent a bogus command, you made an addressing error, or the measurement takes longer and you need to increase the timeout.