01-07-2013 04:10 AM
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
Solved! Go to Solution.
01-07-2013 10:43 AM
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,
01-07-2013 02:04 PM
Thank you jiggawax
That was just what i was looking for
BR
Mogens
10-11-2018 11:17 AM
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).