NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the LabVIEW adapter configuration programatically?

I need to set the "Reserve Loaded VI's for Execution" option programatically. I cannot seem to find the class I need in the API to access this property. How do I do it? It's shown in the TestStand 3.1 API map, but I can't get it to show up when working through the API with the ActiveX adapter in TestStand.
0 Kudos
Message 1 of 3
(3,240 Views)
Lars -
The method is LabVIEWAdapter.ReserveLoadedVIsForExec. The specific adapter class are defined in a secondary type library which you can access in the type library named "NI TestStand Adapter API" Once you get a reference to the adapter using "Engine.GetAdapterByKeyName", just use the LabVIEW Adapter class in the second type library on that reference.
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 3
(3,233 Views)
That did the trick. Thanks!!
0 Kudos
Message 3 of 3
(3,220 Views)