LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global Variable Question

I need to create a way for someone to view my LV 6.1 application from another computer. I know there are ways to do this; but I also need for the remote computer to be able to change tab controls to view different sets of data without changing what the local operator is seeing. (I.e. a VNC solution will not work)
 
 I was thinking that the easiest way to do this might be to just make a duplicate of the program and disable all of the controls I don't want them to be able to use, then just use global variables to pass the live data from the main program to the remote program. Since the remote program will not be able to change the state of any of the globals, there won't be any possibility of race conditions between the two programs. This way I can just pass the status of all of the indicators on the screen to the other program.
 
Will this actually work? The two programs will both have to be built into exe files; and will need to be able to run on a PC that only has the run-time environment installed.
 
Thanks for your help
0 Kudos
Message 1 of 4
(2,819 Views)
You cannot share global variables between two different exe files in 6.1. What I would recomend is that you use Datasocket or the TCP/IP functions and a client/server architecture. There are several shipping examples of each.
Message 2 of 4
(2,815 Views)
Thanks for the quick answer. I had been exploring the datasocket and/or tcp-ip routes, but I thought I'd see if I could get away with something quick and dirty, but I guess not. Thanks for the help again.
0 Kudos
Message 3 of 4
(2,812 Views)
I was originally thinking of using TCP/IP to impliment this functionality, but it seems like it would be simpler to have the main program publish all of its indicators that I want visible to datasocket, then in my remote program have it subcribe to those datasocket items on the main computer. Is this going to cause a major VI slowdown on my main PC I was just going to use the front panel datasocket functionality (i.e. right click and data operations -> datasocket connection)? There are probably 30+ indicators and  some charts/graphs that I want to share between the programs.
0 Kudos
Message 4 of 4
(2,778 Views)