Configure LabVIEW Adapter in TestStand Programmatically

Updated May 31, 2023

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

  1. Add a new Statement step to your sequence.
Graphical user interface, text, application, email  Description automatically generated
  1. In the Expression field, enter the following statement based on the bitness of the TestStand sequence file.
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

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.
  1. Execute the sequence. The LabVIEW adapter should switch to LabVIEW Run-Time Engine.