09-01-2014 07:44 AM
Hello,
i have some instruments that are used with VISA over LAN.
If Labview and all instruments are on before labview is started everything is fine.
If one instrument is turned off and on after Labview is startet then i never get it back to communicate.
Is there a command to "reset" a ip-adress to talk again?
Currently i have to quit labview that the instruments work again.
Thanks
09-01-2014 07:56 AM
You should be able to just close your VISA session and then open it up again.
09-01-2014 04:48 PM
Did you try to establish the communication again after some time? I didn't use VISA over LAN, but I saw similar behavior with TCP/IP socket communication. We have a test program running on a WIndow 7 PC which talks to a CompactRIO over TCP/IP. If we reset the CompactRIO for some reason, we cannot establish communication on the same TCP/IP port for about 90 seconds, if I remember correctly.
This has nothing to do with LabVIEW. Windows releases the used TCP/IP port after specific timeout, if it was not closed properly. I even don't know if this is just Windows or also other operating systems.
Maybe your VISA issue is different, but you can try to close the previous session and reopen it after about 2 minutes. You can display all active TCP connections using netstat in command prompt window.
Nick
09-01-2014 09:02 PM