NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Step Failure kicks back to upper level sequence

I've found some good examples that almost do what I need.  For example,
 
 
I want to use the ProcessModelPostStepFailure Engine Callback similarly so that I don't have to bury a lot of code in each level of my sequence.
 
I have a main sequence that can go down many levels.  For example SeqA can call SeqB, which can call SeqC, which can call SeqD.  If there is a step failure in SeqD, I want to kickback to the setup of SeqB (programmatic definition, of course).  Seq B has a setup section that resets the part and so I can try to run through the steps again.  The 3 button prompt with continue, stop, and retry is what I want to implement.
 
I've tried taking the code in the above discussion and implementing a runstate.caller.runstate.caller.runstate.nextstepindex (and setting the number of runstatecaller steps by the callstackdepth), but if you do anything other than one runstate.caller, it tries to finish the current sequence first.  So, has anyone figured out a way to back out of the current sequence, go up a callstackdepth number of levels and retry?
 
Thanks, Denise
0 Kudos
Message 1 of 2
(3,057 Views)

Hi Denise,

Can you post a simple example and your process model.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,033 Views)