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.

Configure LabVIEW Adapter in TestStand Programmatically

Updated Oct 22, 2025

Reported In

Software

  • TestStand
  • LabVIEW Runtime

Operating System

  • Windows

Issue Details

How do I programmatically change the LabVIEW adapter configuration to LabVIEW Run-Time Engine in a sequence file?

Solution

It is possible to programmatically change which type of LabVIEW server the LabVIEW Adapter uses in TestStand, instead of going to the traditional Configure >> Adapters... tool. To implement it, follow the steps below:

 

  1. Add a new Statement step to your sequence.
inserting statement step to the sequence
  1. In the Expression field, enter the following statement based on the bitness of the TestStand sequence file.
64-bit TestStand sequence file:
RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_RTEServer,"C:\\Program Files\\National Instruments\\Shared\\LabVIEW Run-Time\\<xxxx>\\lvrt.dll")
Where xxxx is the version of LabVIEW Run-Time.

statement 
 
32-bit TestStand sequence file:
RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_RTEServer,"C:\\Program Files (x86)\\National Instruments\\Shared\\LabVIEW Run-Time\\<xxxx>>\\lvrt.dll")
Where xxxx is the version of LabVIEW Run-Time. An example is shown below
 
 
  1. Execute the sequence. The LabVIEW adapter should switch to LabVIEW Run-Time Engine.

LabVIEW Adapter Configuration Dialog showing the LabVIEW RTE Adapter selected