LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two-way communication using Data Socket

Hi all,

I am having a problem associated with Data Socket. This is my situation: I have two PCs, PC-A and PC-B, which PC-A has equipment connect to and PC-B is just a stanard PC. My task is to control PC-A and its equipment over the Internet via Data Socket from PC-B.
I have Data Socket connections of controls and indicators for two VIs where I can read current values of equipment from PC-A at PC-B, and control equipment connected to PC-A at PC-B. But here is the problem.

I need to start VI of PC-A, then start VI of PC-B. This establishes the communication from PC-A to PC-B: values updated on PC-B when values change on PC-A.
While VI of PC-B is running, I need to STOP VI of PC-A and STARTS AGAIN. This establishes the commun
ication from PC-B to PC-A, such that values on PC-A would be updated when I change values on PC-B.

I just want to know, have I done something wrong? According to LabVIEW Help "Controlling a Fron Panel Control Remotely" states: "The front panel control in the first VI retrieves the value the second VI passed through the DataSocket connection. When a user changes the control value in the second VI, the DataSocket connection publishes the new value to the front panel control in the first VI. You cannot manipulate the front panel control in the first VI while both VIs are running." Can somehow justisfy that?

Thank you for your kind attention. Pls advise if you need more information from me.

Steve
0 Kudos
Message 1 of 3
(3,064 Views)
DataSocket is a great technology, but I'm not sure it's the best tool
for your purpose.
DataSocket is intended to be used in publish/subscribe situations, such
as an acquisition server pumping acquired data out to anybody who'll listen.
I think you're really looking for something like either the remote VI
server, or straight TCP/IP calls. This will require a little more
programming, but you'll end up with a more robust application in the end.

Brian

"Stevie" wrote in message
news:50650000000800000068570000-1027480788000@exchange.ni.com...
> My task is to control PC-A
> and its equipment over the Internet via Data Socket from PC-B.
0 Kudos
Message 2 of 3
(3,064 Views)
Hi all.

This is Steve. I have found a solution for the question I posted a while ago. If anyone is interested, feel free to e-mail me seechung@yahoo.com

Thank you Brian for the response!

Steve
0 Kudos
Message 3 of 3
(3,064 Views)