08-26-2010 03:38 PM
Group, Is there any way to "get a hold of" a reference of a functional global running inside another vi? I have a program that uses a functional global to pass data between vi's of a program. I have this program starting up as a service when I start the computer so I don't really have access to its front panel. Part of the data that the FG holds is a STOP flag and will shut down mulitple parts of this program. I would like to build another program that I can start and run at will that will set the STOP flag in the "hidden" running program. I am not sure quite how to do this.
Thanks
Todd
08-26-2010 05:12 PM
What you are essentially asking to do is to access an internal resouce of another program. Doesn't really matter if it's a LabVIEW program. In your case you could enable the ActiveX server for the other program so you can access the VI that way. The LabVIEW Help contains information on how to enable the ActiveX server for an app and how to use it from another application. You could also use shared variables. You can take a look at this overview for more ideas:
08-27-2010 03:48 AM
You can also have a look here for an example of accessing a FG remotely. Note that you will need to enable TCP access for the VI server and specify a port different from the default port for this to work.
08-27-2010 09:54 AM
Looks like I have some research to do. Thanks for the direction.