LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to a FG from another running program

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

0 Kudos
Message 1 of 4
(2,474 Views)

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:

 Community: Inter-Application Communication

0 Kudos
Message 2 of 4
(2,462 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(2,443 Views)

Looks like I have some research to do.  Thanks for the direction.Smiley Tongue

0 Kudos
Message 4 of 4
(2,426 Views)