NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way in LabVIEW to check if TS execution is complete

I was wondering if anyone had some thoughts on this.

 

What is the best way in LabVIEW to check if a TestStand Execution is complete.  I am currently starting a New Execution in a previous state using the 'Engine->New Execution' method.  Then in my state shown in the attachment, I simply wait in a loop until the execution is Stopped using Execution->Get States.

 

I have also noticed the function called 'Execution->WaitForEndEx' but the help documentation indicates:

 

" This method is not meant to be used by a user interface or sequence editor, as it does not process UIMessages. Instead, use this method from a step to synchronize with another execution."

 

Is WaitForEndEx a better method or should I stay with the current implementation?

 

Thanks,

 

Paul Holzrichter

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

Hi Paul.

You could also use the Application Manager's "EndExecution" event.

This would prevent you from staying in a loop and waiting for the execution to complete.

Regards, Guenter

0 Kudos
Message 2 of 2
(2,751 Views)