NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

C# .Net End of Sequence execution

Solved!
Go to solution

Hello,

 

I'm developping a software using TestStand api in C#.

I am executing a sequence from a .seq file using

axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 0).Execute(true);

 

How can I know when the execution ended ? Where/how can I check the status ?

 

Thanks.

0 Kudos
Message 1 of 2
(749 Views)
Solution
Accepted by IsMu

You can handle the ApplicationMgr.StartExecution and ApplicationMgr.EndExecution events to monitor executions.

If there is an issue determining which execution event is for the execution you started with Command.Execute, you would need to instead start the execution with Engine.NewExecution, which returns the Execution reference.

 

Command.Execute is intended for use with standalone UI elements performing a wide range of possible actions. It does not return any command specific information.

Message 2 of 2
(741 Views)