LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView hangs when connecting to an not existing OPC Server

My problem is exactly the same problem as already described in:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=5065000000080000000F5D0000&ECategory=LabVIEW.LabVIEW+General

If the computer with the OPC-Server is down, my complete LabView Applicaton hangs in an internal LabView function. I tried already every suggestions from the above mentiond link without any success.

Did NI find a solution for this problem in the last two years?
0 Kudos
Message 1 of 2
(2,597 Views)
I tried your program with the newest version of LabVIEW, which is 7.1 and the crash did not occure. I got an error message instead, telling me that the remote PC was not accesible.
But it takes maybe half a minute until the error comes up, and until that time LabVIEW does does not respond to any action, but this seems to be more like a Windows problem.
In order to work around the problem, you might send a ping to the IP Address before you try to make a connection via Datsocket. You can use the SystemExec Vi to send the ping command programatically. With the help of string functions you can investigate the result and check if the server is responding or not.

Ingo Schumacher
National Instruments
0 Kudos
Message 2 of 2
(2,597 Views)