This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Enabling VI Server Support for a LabVIEW Executable

Updated Feb 8, 2018

Reported In


  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW Application Builder Module
  • LabVIEW Base

Programming Language

  • LabVIEW G

Issue Details

I built a LabVIEW executable using LabVIEW Application Builder and want to automate accessing controls or indicators in my executable from another VI. How do I set this up?


To access the controls and indicators of a built executable, you first need to enable VI Server support for an executable follow the steps below:
  1. Use LabVIEW Application Builder to create your executable.
  2. Navigate to the directory containing your application and open <application name>.ini.
  3. Add the following lines to the end of your application's INI file:
  1. To connect to the VI Server running for the executable, open a new VI and place the Open Application Reference function.
  2. Wire a constant or control to the machine name input and set it to localhost. If you don't do this, your VI will try to connect to the default LabVIEW VI Server instead of the executable.
  3. Wire a constant or control to the port input and set it to the tcp port number you specified in Step 3.
You now have a reference to your application and can use property and invoke nodes to read/modify the application's behavior. You then need to open a VI reference:
  1. Drop an Open VI Reference function on the block diagram.
  2. Wire the application reference output of the Open Application Reference function to the application reference input of the Open VI Reference Function.
  3. Wire a string constant or control into the vi path input of the Open VI Reference function. In the string constant or control, specify the name of the VI that you previously built into the executable.
You now have a VI reference, which can be used to access objects on the front panel of the executable. The following image shows an example of opening a VI Reference for an executable:


Not Helpful