LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make two PCs (one local, one remote) control the same running vi at the same time?

Hi Labviewers,

I have a vi running, and two PCs are monitoring it, one is local and another one is remote.

I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control of the running VI at the same time.

Is there any way to make the two PCs both have the control of the same vi at the same time?  Switching back and forth the control between two PCs is really annoying.


Thanks a lot for any help.

Anne

0 Kudos
Message 1 of 7
(3,518 Views)
For simultaneous control using the application property node or the web server the VI would need to be reentrant. This is explained in the LabVIEW User Manual.
0 Kudos
Message 2 of 7
(3,508 Views)

What exactly are you trying to control?

Perhaps another approach? You could use "Shared Variables" from LV 8.0 and have a copy of the writer VI on each of the control PCs edit the value on the host PC. But as soon as I post, someone is going to talk about multiple writers to shared resources being a bad idea.... so just be careful or you may try to edit a value that has already been changed.

 

0 Kudos
Message 3 of 7
(3,503 Views)
I tried a reentrant vi. It doesn't work. Still only one PC has the control of the same vi at the same time.
0 Kudos
Message 4 of 7
(3,490 Views)
I want to contol the vi means to change the value of controls on the front panel.  For example, a simple vi has only a while loop and a stop button on front panel. I want both PCs are able to click the stop button and stop the process. 

The current situation is, one PC gets the control of the running vi, it is able to click the stop button, and at the same time the other PC will lose control and basically is disable to do anything but monitoring the vi.

Hope the explanation is clear.

Thanks.
0 Kudos
Message 5 of 7
(3,486 Views)

Do you have LV 8.0 or later?

Read about "Shared Variables"... this could very well be a solution for you.

0 Kudos
Message 6 of 7
(3,482 Views)
I don't have.     😞  

Thanks a lot anyway.

Anne
0 Kudos
Message 7 of 7
(3,472 Views)