Contolling a labview executable from another labview executable
First, here is the set up.
1. Make sure that TCP/IP option for VI Server Configuration is
checked. This will have to be done after tha application is built or
by copying the LabVIEW INI file and making the needed changes.
2. Each application that you create should listen on a different port
number. So, change one of the two executables to a different port
number. This will have to be done after tha application is built or by
copying the LabVIEW INI file and making the needed changes.
3. Place down an Open Application Reference function and place the new
port number as one input and 127.0.0.1 for the IP Address/Machine Name
input. If you do not have the 127.0.0.1 (localhost), then it tries to
connect to itself, not the other application.
4. Place down an Open VI Reference and connect it to the Open
Application Reference. Wire the name of the VI that you want to
connect to into the VI Path input.
From here, you can call any method or property that you can normally
in an executable. If you wish to call the Abort VI method, make sure
that the VI can be aborted (change the VI Settings in the Application