NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Test Status "Terminate" only for some UUTs

Hi,

 

Looking for some help.  I have a 3 hours test.  Since it is a long test time, I have a pretest in my test sequence.  If any UUT fails, I want the test operator to replace the UUT and restart the test.  This is a batch model with multiple UUTs.  For the UUTs that fail the pretest, I want the test result status to be "FAIL" but for the rest of the UUTs that didn't fail the pretest, I want their result status to be "TERMINATED".  I want it to be "TERMINATED" because it didn't fail the pretest but also did not complete the entire test. Right now as things stand, those UUTS show a "PASS test result status and I want it to by "TERMINATED" instead.  How can I programatically change the test result status of each of my UUT to what I want?  Thanks.

0 Kudos
Message 1 of 5
(2,769 Views)

Hi

 

Perhaps it is an option for you to terminate the affected UUTs with the 'Terminate Execution' method.

 

Regards,

Chris

0 Kudos
Message 2 of 5
(2,734 Views)

Hi Chris,

 

Thanks for the response.  I did use the "Terminate Execution" method already.  However, it will apply a terminated status to all the duts.  I want to specifically pick which DUTs get the Terminated Status and which Duts get the failure status.  The Terminate Execution method doesn't seem to have the ability to specify which dut to apply it to.  It just applies terminated status to all the duts.  Not what I want. 

0 Kudos
Message 3 of 5
(2,707 Views)

If I understand your post, what you need is that if any DUT fails pretest, failing DUTs end with a failed status and all others end with a terminated status.  

 

In the attached example, there's a FileGlobal called anyfail.  Note that my Sequence File Properties for Sequence File Globals is set for "All Executions Share the Same File Globals". In my pretest sequence, the anyfail global is OR'd every single time so if any DUT fails, anyfail will be true.

 

Then, in mainsequence, after pretest executes, there's a terminate step RunState.Execution.Terminate() with a precondition.  If the previous step (the pretest sequence) doesn't have a status of failed AND anyfail is true, then there will be a terminate.  

 

Does that make sense?

Message 4 of 5
(2,682 Views)

Thanks PulidoTech and Chris.  You answer helped me solve my problem.  Thanks.

0 Kudos
Message 5 of 5
(2,647 Views)