Configure LabVIEW Adapter in TestStand Programmatically

Updated Jun 16, 2020

Reported In

Software

  • TestStand

Issue Details

I'd like to programmatically change LabVIEW adapter configuration to LabVIEW Run-Time Engine in a sequence file. Is there a way to do this?

Solution

Insert a Statement step and go to the Expression tab then use the statement
RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_RTEServer, "C:\\Program Files\\National Instruments\\Shared\\LabVIEW Run-Time\2019\lvrt.dll")

If you are using a previous version of LabVIEW, you must use the correct version of LabVIEW in the Expression.