I have been attempting to find a method thorough the TestStand API in LabVIEW 8.0.1 to change the LabVIEW Runtime adapter programatically within mand not having the operator close the application and then restart it. Mu application is a customized version of the Full-Featured LabVIEW operator interface.
One solution is to use the Adapters -> Configure method that brings up a dialog box that allows the user to select the appropriate LabVIEW run-time engine version. Unforunately, I do not want an operator to have to make a choice of what version to run. Using the window, and selecting a new version works as expected within my operator interface as I do not need to close the application.
My other solution is to modify the <TestStand> \CFG\TestExec.INI with a new path to the approrpriate Run-Time Engine
[Config._AdapterCfg]
_FlexGAdp_ServerName = "LabVIEW"
_FlexGAdp_RTSPath = "C:\\Program Files\\National Instruments\\shared\\LabVIEW Run-Time\\8.0\\lvrt.dll"
Where the_FlexGAdp_RTSPath is changed depending on the run time engine needed within the code module.
By changing the TestExec.INI file I read it was necessary to shutdown and then restart the TestStand Engine. I have found quite a bit of information of shutting down the TestStand engine but nothing on starting it back up. So to shutdown the engine from my LabVIEW operator interface I use the Engine -> Shutdown : Final = True method. I wait about 10 seconds.
When I start up the engine using ApplicationMgr -> Start. It does not appear that the engine is started as I get a 17500 error saying the engine was shutdown when I attempt to run a sequence.
Is there a better way to perform this Engine shutdown/startup method? Since I am using the UI controls do I need to perform an Application Shutdown and then Application Start?
Any thoughts would be appreciated?
Thank you,
Paul H