LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Socket Publish and Subscribe option

I'm writing a server/ client application in wish the client needs to be updated by the server with information when its first started and then also be able to write back to the same controls thru data socket. The applications are on two different computers connected with ethernet. I try to use the "publish and subscribe" option on the datasocket set up but the client can not connect to write to the server when i do this. It says that a host is already connected to write so therefore the client can not write to the server.

I've also tried creating a control and an indicator with separate publish and subscribe data socket features but this does not permit for automatic updating in my server. It must wait for the server's application to finish thru a loop that has a timer that varies around 30 seconds.

Is there any other way to have a client update a server in real time with both read and write functions?

Thanks in advance!
0 Kudos
Message 1 of 3
(2,930 Views)
One thing you can try to do is to enable the "Allow Multiple Writers" option on the DataSocket Server.

In the DataSocket Server Manager, under Predefined Data Item, create the item that your server/client need to write on, and enable the "Allow Multiple Writers". This will allow both server and client to write to the same address line.

Hope this helps,
Dan
Message 2 of 3
(2,927 Views)
Dan,
That worked great. Thanks a lot
0 Kudos
Message 3 of 3
(2,902 Views)