LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket Server connection-disconnection error on winXP

Hi. I'm using DS to transfer string and boolean data between 2 machines.

Machine 1:
- WinXP SP2, firewall disabled
- Running DS Server
- Mainly publishing Data (LabView 7.1)

Machine 2:
- WinXP SP2, firewall disabled
- Mainly suscribing to data on machine 1 (LV)

First, the DS server window on machine 1 says "processes connected: 1, pckts rcvd: ..., pckts sent:...", and the packets number is constantly growing. All ok up to this point.
When I try to suscribe to data from machine 2, the DS window on mach1 instantly says "processes connected: 2", but the packets status indicators stop growing. The suscriber program waits for the connection and finally after about 40 seconds the connection is succe
ssfully acomplished, the suscriber reads data and the publisher keeps publishing data normally.
When the suscriber program stops, the DS window on machine 1 hangs again for some seconds.
The big problem is that sometimes when the DS window hangs (on connection or disconnection), Windows (on mach 1) reports an error, attemps to send an error report to Microsoft (!) and ends datasocket server. The report file is attached.

Any help appreciated,

Daniel R.
0 Kudos
Message 1 of 2
(2,721 Views)
Hi Daniel,

Do you have WinXP Service Pack 2 by any chance? I don't know that NI has fully tested all issues related to SP2 and Datasocket yet, but WinXP with SP1 should be good.

Also, it looks like you're using the OPCDemo.exe program in the National Instruments folder as your OPC Server application. Are you using the corresponding NI Demo OPC Client example program as the client application?

Or, if you are using your own application, is the program using the Datasocket primitives or ActiveX VIs? There might be issues related to the ActiveX needing more time to oepn/close connections. Another question is whether the program performing Open-Write-Close operations. This might also cause some memory and performance related issues.

As far as updat
ing the DS Server manager, the updating of packets indicated might improve if you open the DS Server connection using "ReadAutoUpdate" for the access mode.

Hope this helps! Good luck.

Kileen C.
NI
0 Kudos
Message 2 of 2
(2,721 Views)