12-16-2011 03:02 PM
Is there a way to programmatically change "Run Setup and Cleanup for Interactive Execution" option?
Is it advisable to change the cfg\testExec.ini and deploy the custom file or change the station option programatically?
Solved! Go to Solution.
12-19-2011 04:33 PM
Hi Lvrat,
You can change the Run Setup and Cleanup for Interactive Execution option through the Execution Mask in the Engine API.
Here is an example of the logic that you could use:
RunState.Engine.StationOptions.ExecutionMask = RunState.Engine.StationOptions.ExecutionMask And Not 0x2000
If you right click on the ExecutionMask inside TestStand and select TestStand API Help and then ExecutionMask (the first link) then you'll be sent to the ExecutionMask Constants which all have different values. By selecting the value of the Interactive Run Setup and Cleanup parameter, we are able to toggle this on and off without affecting any other options.
Regards,
Trey C.
Applications Engineer
National Instruments
12-20-2011 05:03 PM
Hello Trey,
I am guessing the logic should be in OI. What would be the corresponding function for CVI OI for this?
The functionality I am trying to achive is the same that once the OI is launched the Station Option should be set such that Interactive Run Setup and Cleanup is unchecked.
Or should a custom testExec.ini should be installed with the custom OI.
Any suggestions.
Thanks!!
12-21-2011 01:14 PM
Thanks Trey...got this working!!