NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

After step failure, start the next UUT test

Teststand 3.5 ,LabVIEW 8.0/CVI 8.0

 

I want to start the next UUT test execution after one step failure.

 

I can terminate the corrent execution using Teststand API,  and select "Next UUT" to go on the next UUT test.

but I don't like the popup prompt(for select Next UUT or Terminate). How  should I do ?

 

or , there is another way to reach it ?

 

thank you

 

Xuehui Sun

bisun112233@163.com

china shengzheng

 

0 Kudos
Message 1 of 7
(3,684 Views)

please add attachment , if convenient

0 Kudos
Message 2 of 7
(3,683 Views)

There are several ways to work around this.

  • The simple way would be to use a post action to go to the cleanup-stepgroup. This is what is done when terminating an execution, but you won't have the executio-status "terminated" by "manually" jumping to the cleanup. Therefore the dialog Next UUT vs Terminate will not pop up.
  • You can use a callback to react on step failures. Just set the the RunState.NextStepIndex from the caller by using an ActiveX-step. Using this metho, you can "jump" to any step of your sequence. But it is a bit challenging to get the correct stepindex....
  • Modify the procesmodel not to display the dialoge. This is not really recommended, but works for you, too....


hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 7
(3,665 Views)

 Thank you, Norbert B

 

See my reply below:

 

There are several ways to work around this.

  • The simple way would be to use a post action to go to the cleanup-stepgroup. This is what is done when terminating an execution, but you won't have the executio-status "terminated" by "manually" jumping to the cleanup. Therefore the dialog Next UUT vs Terminate will not pop up.
  • I don't want to add a post action in every step in "MainSequence", it's hard and no fun.
  • but in "SequenceFilePostStepFailure" engine callback, I can't goto the cleanup of "MainSequence", so it don't work.
  • There is also a chance: goto a destination step by expression, I have tried, but failed 
  • You can use a callback to react on step failures. Just set the the RunState.NextStepIndex from the caller by using an ActiveX-step. Using this metho, you can "jump" to any step of your sequence. But it is a bit challenging to get the correct stepindex....
  • the way is similar to "goto a destination step by expre", a bit challenging, I will try
  • Modify the procesmodel not to display the dialoge. This is not really recommended, but works for you, too....
  • I know. but fail in compatible. I don't like it.
0 Kudos
Message 4 of 7
(3,658 Views)

There is a built in option to do this.

 

Configure>>Station Options on the Execution tab.  Immediately Goto Cleanup on Sequence Failure.  Try enabling that option and see if it helps.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 5 of 7
(3,646 Views)

Thanks  Josh W.

I am afraid you donn't understand my means clear.

When I enable "Immediately Goto Cleanup on Sequence Failure". when a step failure, the execution stop. this isn't what I want to see. I only to see the execution start the next UUT test after a step failure(stop the current UUT test).

 

if there is a difference in your computer?

 

thank you

 

0 Kudos
Message 6 of 7
(3,641 Views)

Hm, on my PC it works out the way Josh suggested. In order to test multiple UUTs "in a row", you have of course have to use the "TestUUTs" entry point. Using the "SinglePass" will always test only a single UUT and then finish execution.

The only disadvantage of Josh's suggestion is that this setting is true for ALL tests on this station in the future (unless changed in the options again). This might be ok for you, maybe not....

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 7
(3,639 Views)