NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing Completed Execution Views in TestStand3.0

Hello all -

Using the TestStand LabVIEW Operator Interface, I know that I can close all completed executions as a right-click option on the execution listbar control, however I would like to implement a button on the OI that would achieve the same effect. Or at least set the execution type mask so all executions auto close but I am wondering if the behavior is still exposed at a minipulatable level from the new API.

I am aware that there is a property 'ApplicationMgr.Executions' that takes the place of the old array of execution refnums (from TS 2.0.x OI) but it seems to only work when execution is paused?

I am looking for a simple way of retrieving references to completed executions at any time so that I can issu
e a close command to them without interfering with any current executions.

Any ideas would be helpful, thanks.

-Elaine
Cheers,
Elaine R.
www.bloomy.com
0 Kudos
Message 1 of 4
(3,638 Views)
To create a button that closes all completed executions, drop a TestStand button and connect it to the CloseCompletedExecutions commands. C# Example:

this.axApplicationMgr.ConnectCommand(this.axButton1, CommandKinds.CommandKind_CloseCompletedExecutions, 0, 0);


To issue the close all command from any point in your code, call:

this.axApplicationMgr.GetCommand(CommandKinds.CommandKind_CloseAll, 0).Execute(true);

To always automatically close executions as they complete, call SetAutoCloseExecution in response to the Application Manager StartExecution event. C# example:

this.axApplicationMgr.SetAutoCloseExecution(e.exec, true);
Message 2 of 4
(3,638 Views)
I knew there was simpler way to access that functionality but I was coming at the problem from the wrong direction.

Thanks!

-Elaine
Cheers,
Elaine R.
www.bloomy.com
0 Kudos
Message 3 of 4
(3,638 Views)
Oops, I had an "intellisense" typo in the answer above. CommandKinds.CommandKind_CloseAll should instead be CommandKind_CloseCompletedExecutions.
0 Kudos
Message 4 of 4
(3,638 Views)