NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set LabVIEW adapter to auto detect programmatically

Solved!
Go to solution

Hi

 

I can programmatically set the LabVIEW adapter inTestStand to 2011 RTE using this expression:

 

RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_RTEServer,"C:\\Program Files (x86)\\National Instruments\\Shared\\LabVIEW Run-Time\\2011\\lvrt.dll")

 

I would like to set the adapter to "Auto Detect VI version" instead. Do anybody know a solution to this

 

Thanks

 

BR

Mogens

0 Kudos
Message 1 of 4
(3,299 Views)
Solution
Accepted by topic author m-nielsen

Try this:

 

RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_RTEServer,"AutoDetect")

 

I used the GetServerInfo method with mine set to autodetect and that's what it returned.

 

Hope that helps,

 

 
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(3,286 Views)

Thank you jiggawax

 

That was just what i was looking for

 

BR

Mogens

0 Kudos
Message 3 of 4
(3,280 Views)

Thanks jiggawx, I was also looking for this. 

 

this expression will return the LabVIEW adapter to Development environment: 

RunState.Engine.GetAdapterByKeyName("G Flexible VI Adapter").AsLabVIEWAdapter.SetServerInfo(LabVIEWServer_ExecServer,"LabVIEW")

 

I am still looking for a programmatic way to set tjhe LabVIEW Version. Right now am relying on procedural (last version of LV launched). 

Sr Test Engineer at American Innovations - LabVIEW CLA - Kudo's are appreciated!!
0 Kudos
Message 4 of 4
(2,113 Views)