NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

test failure needs to reboot device

Hello All,
I am writing a number of large number of small Labview tests for an electronic device. Teststand is being used to schedule these tests, however the device can crash causing the remaining tests to fail (sorting out the crashes isnt the current issue).
 
I need to force a reboot after any test fails.
 
I have only used Teststand so far to list and run the tests and havent much knowledge of how to use the other features yet. I have automated labview power down and up of the device and run this from Testand. I would like to integrate a 'call' or 'goto' feature that runs the power down/up each time Teststand receives a test fail notification.
 
 I have put together an if / else statement that is called and passes the test result from 1 test but dont know how to move on and to include the other 100 or so tests. Is there a better way to do this? Suggestions on how to approach this please.
 
Regards
 
Chris
0 Kudos
Message 1 of 2
(2,823 Views)

Are you using a process model?  If so you can create and include your reboot steps in a Process Model sequence called ProcessModelPostStepFailure.  Inside this sequence you can perform any operations you want and it will only be called following a failure occurs in a test sequence using that process model. 

Alternatively you can add the SequenceFilePostStepFailure ngine Callback to your test sequence, this will be called whenever you get a failure is that sequence only.

If these sound like the sort of thing you need message back and I'll have a go at describing how you go about adding engine callbacks.

Regards

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 2 of 2
(2,810 Views)