Using TestStand to Call LabVIEW Code Modules on a Remote Machine

Updated Apr 27, 2023



  • TestStand
  • LabVIEW

This tutorial will show you how to configure remote VI execution from a TestStand sequence. This will apply to TestStand systems in which TestStand runs on one machine, and your LabVIEW code module(s) run on a remote machine. For the purposes of this tutorial, we will refer to your computer hosting TestStand as the TestStand Machine, and we will refer to your computer hosting LabVIEW as the LabVIEW Machine.
To establish proper communication between the TestStand Machine and the LabVIEW Machine, you will need to configure settings on both machines in TestStand and LabVIEW.

LabVIEW Machine

To configure your LabVIEW Machine for remote VI execution, complete the following steps:

  1. Open LabVIEW.
  2. Select Tools»Options....
  3. Select VI Server from the Category pane to display the VI Server settings.
  4. In the Protocols section shown in the following image, check the TCP/IP checkbox, and make note of the Port field.
  1. In the Machine Access section shown in the following image, select Add, and type your TestStand Machine name or IP address into the Machine name/address field.
  1. From the Machine access list, select your TestStand Machine, and then select the Allow access radio button.
  2. Press OK to save these options.

TestStand Machine

To properly configure your TestStand Machine to call a VI remotely, complete the following steps:

  1. Open the TestStand Sequence editor.
  2. Create a LabVIEW Adapter Step, and select it to bring up its Step Settings pane.
  3. From the Module tab, select the Advanced Settings button to bring up the Advanced LabVIEW Settings window, shown below.  The VI can be located in a shared network location, or locally on the LabVIEW machine.
  1. Select your LabVIEW Machine as the Remote Host.  You may alternatively specify an IP address here.
  2. If the VI is in a shared location, select the Remote VI Path by browsing to the shared folder on your LabVIEW Machine. If the VI is only accessible on the remote machine, specify the path of the VI on your LabVIEW Machine manually by typing the path name.  Always use the Windows file path delimiters, even if the LabVIEW machine is using an operating system other than Windows.  For example, to reference a VI on a Macintosh machine located at My HD:LabVIEW from a Windows–based application, use the path My HD:\LabVIEW VIs\
  3. Specify the Port Number you specified when configuring your LabVIEW Machine.
  4. Click Close to close the LabVIEW Advanced Settings window.
  5. In the Module tab, select a VI Path by using the Browse for VI... button.  If your VI is located in a shared location, select the VI on your LabVIEW Machine from a shared network location.  If the VI is not located in a network location, you may either point to a copy of the VI on the TestStand machine, or a VI on the TestStand Machine with an identical VI Connector Pane.

Once you have configured these settings, you will be able to use TestStand to run VIs on your LabVIEW Machine.