NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Close TestStand Sequence

Solved!
Go to solution

Hi,

 

I am something of a TestStand novice, so apologies if this is a simple question.

 

Is there a way of programmatically closing a TestStand sequence on completion, or can I give it an instruction in its final step to close itself.

 

I would like the TestStand environment itself to remain running, I want to close only the sequence file in question.

 

Thanks,

 

Dan

Dan
CLD
0 Kudos
Message 1 of 2
(5,514 Views)
Solution
Accepted by DanB1983

For closing the sequence file you can use a method of ApplicationManager called CloseSequenceFile.

You can obtain ApplicationManager reference out of the SequenceContext by getting its property Engine -> method GetInternalOption (InternalOption_ApplicationManger) -> cast it to IApplicationMgr class.

 

The easiset way to do that in TS is to use an action with ActiveX/COM adapter and set its settings like this. It should close the sequence file after its execution is over.

 

ActiveX - close seq.jpg

------------------------------------------
CLA, CTD, CLED @ Test & Measurements Solutions Poland
Message 2 of 2
(5,508 Views)