11-11-2012 01:45 PM
Is it possible to reconnect to a GPIB device if it has lost power momentarily?. My experience has been that if a device has lost power and you turn it back on you have to restart Labview in order to connect to it again. This is not a problem with ethernet connected devices.
I'm using LabView 11 and a GPIB-USB using VISA to lalk to some of my older instruments that don't have ethernet connections.
Norm
11-12-2012 05:21 AM
Hi Viper
The best way to deal with this is to create a sub-VI that is called when an error is returned from a VISA write or read. The sub-VI closes the current session and begins a loop attempting to open a new session and ends the loop when a new session is established.
Let me know if this helps.
Kind Regards
11-12-2012 07:24 AM
I think your problem of "needing to restart LabVIEW" is likely coming from not closing the session. As has been said, when you detect an error like this, close out the session and retry later to communicate with the instrument.