NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to terminate/restart a execution?

I am using simple user interface(LabView) to develop a new custom UI.

But I find the Terminate/Restart Button doesn't work: After I use it to terminate one execution, not able to restart it anymore.

How to restart a terminated execution when run TestUUTs?

I'm appreciate any help on this.

0 Kudos
Message 1 of 4
(3,783 Views)

There are a couple of possibilities for the cause of the issue you are seeing.

 

1) Terminate is asynchronous, so if you are programmatically terminating the execution and restarting it, the restart might be getting done before the termination is complete. Wait for the execution to complete before restarting it. You can use Execution.WaitEx, UIMessages, or polling with GetStates to tell when the execution is really complete.

 

2) Executions can be marked as not restartable. The batch model uses this setting (on the new execution sequence call) in order to keep you from incorrectly restarting the socket executions. For the batch model, only the controlling execution should be restarted. Restarting the controlling execution restarts the socket executions automatically.

 

-Doug

0 Kudos
Message 2 of 4
(3,756 Views)

Hi Doug,

 

Sincerely thanks for your reply.

Blew is my

1) I still do not implement any terminate and restart action. I just use the default terminate/restart button that the simple UI provided. Do I need to program the terminate/restart fucntion to the process model.

 

2) I'm using default parallel process model but disable the UUT information dialog. Perhaps it also has the "not restartable" setting? I don't know where is the setting. Could I marked it as restartable? Could you get more details on how to do this?

 

Thanks again for your kindly help.

 

--Wells

0 Kudos
Message 3 of 4
(3,738 Views)

Yeah, I think the testsocket executions for the parallel model are also marked as not restartable. Normally they are restarted by the controlling execution.

 

-Doug

0 Kudos
Message 4 of 4
(3,734 Views)