Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programatically reconnect to GPIB/ENET-100 device

Hello

 

I am developing a VI that communicates to a single GPIB/ENET-100 device.  The VI is communicating with the device.  However, I am trying to account for the device being shut off.  How do I reconnect to the device programmatically after it has been shutdown.  I don't want to restart my VI in order to do this.  So far the only thing that seems to work is shutting Labview 8.2 down and restarting it.  Is there any way to reinitialize the 488.2 drivers?  I suspect that this is the issue.  Thanks for your help.

0 Kudos
Message 1 of 3
(3,409 Views)
Hello Acelhp,

Can you clarify whether you are concerned whether you lose connection to the Ethernet or the instrument of interest? Also are you using the VISA VIs or the GPIB VIs?

Regards,
Glenn
0 Kudos
Message 2 of 3
(3,383 Views)

Glenn

 

I get the following error:

 

NI-488: Error connecting to driver or device.

 

This occurs when I shut off the GPIB-ENET/100 device.  Even after powering the device back on and waiting for it to complete its boot up, I still get this error.  Thus far the only way I have been able to reconnect to it is to shut Labview down and restart it.  I believe my problem to be with the Ethernet (GPIB-ENET/100) and not the GPIB instrument/device.

 

I have tried both GPIB methods and VISA methods.  Both seem to do the same thing.

 

Kyle 

0 Kudos
Message 3 of 3
(3,369 Views)