10-07-2002 11:29 AM
11-07-2002 10:33 AM
01-15-2003 08:03 AM
04-13-2005 08:08 AM
04-14-2005 06:31 PM
11-09-2006 08:49 AM
11-10-2006 04:49 PM
02-06-2007
10:57 AM
- last edited on
06-30-2025
11:46 AM
by
Content Cleaner
Hello,
I am developing an application in LV 8.2. If I the OPC server computer is available on the network, the application connects with no problems and starts reading/writing. If the connection to the server is lost either before starting the application and open the Datasocket connection or when read/write operations are running, the application will hang for minutes before reporting any error.
Based on the KB http://digital.ni.com/public.nsf/allkb/c94e75af6deb344486256f59001b4f7b , I explored the lower level VIs at C:\Program Files\National Instruments\Labview xxx\vi.lib\platform\dataskt.llb
I replaced the high level VI 'Datasocket Open.vi' from the pallete with the Lower lever 'Datasocket Open Connection.vi' from the library mentioned above. Below the hierachy, there is a VI called 'Datasocket Connect.vi" (see pictured attached) which is calling a Component Works Datasocket Method from a DLL. After testing with and without connection, this is the VI that is hanging or freezing the application. As can be seen at the block diagram picture (attached), no timeout input is available.
This makes me believe that there is no hope to handle Communications errors properly with datasocket.
I would appreciate any advise on this.
Thanks a lot
Art
02-08-2007 03:31 PM
03-07-2008 02:14 AM