NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop the test if one UUT fails in a particual section [batch process model]

Section A is the pretest of a long burn-in test (8-48 hours). In the pretest, various methods are called and if one UUT fails then the whole test should fail and the operator shall remove that failed UUT for further inspection. 

 

Test sockets enter this section serially (one at a time). 

I'd like to run the pretest on all test sockets even if one failes. 

If all test sockets are PASSED then continue, otherwise show the results. 

 

One solution would be to have a shared boolean in FileGlobals called PreTestStatus. If a step in section A failes, I set PreTestPass = False and then check this boolean to see if there any UUTs which have failed at pretest. 

 

Are there any better approaches to this? 

 

 

a.PNG

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

Your way is the simplest way that I can think of - two things to keep in mind: 

 

1. If you're using a file global, you're going to want to go to Edit>>Sequence File Properties and change the default setting for Sequence File Globals to "All Executions Share the Same File Globals," in order for each test socket to write to the same file global. 

2. You should set the variable before the end batch synchronization step in an an expression or a post-expression.

 

Hope this helps!

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