From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

C# UI (Teststand 4.2) Exception - Execution is not paused

Solved!
Go to solution

Hi,

 

I'm trying to work on an old Teststand version (4.2) on windows XP for a client that can't justify migrating to newer version of teststand because it is a product that are end-of-life but they aren't dead yet and can't tell when they will be.

 

I need to be able to extract the failure from the SequenceContext but each time I try to get the SequenceContext, an exception is raised telling "Execution is not paused".

 

First of all, how to I pause an execution from the C# UI ?

I've tried to get the SequenceContext from the following events without any success :

- axApplicationMgr_UserMessage

- axExecutionViewMgr_EndExecution

- axExecutionViewMgr_Break

- axApplicationMgr_EndExecution

 

Any idea what I'm doing wrong?

I'm pretty sure it is simple to do but can't figure out what I'm doing wrong..

 

Thanks

 

0 Kudos
Message 1 of 2
(1,894 Views)
Solution
Accepted by topic author ebonneau9

Ok, I've answered myself to the problem.


I used the ResultObject and ResultStatus to extract the ResultList PropertyObject and extract data.

 

I that way, no need to get the SequenceContext object and have problem with pausing it.

 

Hope this helps someone one day.

0 Kudos
Message 2 of 2
(1,871 Views)