NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Interaction Mode Station Option

Solved!
Go to solution

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?


*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 4
(2,884 Views)
Solution
Accepted by topic author lvrat

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

0 Kudos
Message 2 of 4
(2,867 Views)

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!!

*************************************************
CLD
*************************************************
0 Kudos
Message 3 of 4
(2,859 Views)

Thanks Trey...got this working!!

*************************************************
CLD
*************************************************
0 Kudos
Message 4 of 4
(2,845 Views)