01-25-2009 12:48 PM
01-25-2009 10:47 PM - edited 01-25-2009 10:48 PM
When you say "stop" do you mean Break or do you mean stop everything and go to the report? In Configure>>Station Options on the Execution tab there is a check for Immediately Goto Cleanup on Sequence Failure. This will not execute any more steps in your Setup or Main step groups. However, it will execute the steps in the Cleanup step group as well as the rest of the steps in your Model.
There is another way but it depends on what kind of behavior you are looking for. There is an Engine Callback called PostStep. Basically a sequence that gets called after every step. You can add it to your SeqFile, Model or to your Station Callbacks file. In there you can have a step that checks to see if the sequence has failed and then break, terminate, abort or whatever else you want to do. Again this all depends on the bahavior you are looking for and this can be a bit tricky.
Let me know for sure what you want and I can probably shed more light on it.
Regards,
01-26-2009 02:43 AM
Hi Jigg, Thanks for the quick repsonce and great help.
I would like the seq to stop the moment a failure happens, and then ask for the next UUT to be inserted.
Thanks
Goose
01-26-2009 03:28 AM
Goose,
request like yours normally target special steps. So if e.g. a configuration step for the UUT fails, there is no sense in running through the whole sequence since following steps would create either fails or even run time errors.
The easiest thing to solve this is to use steps from the flow control palette. You can either use if-clauses or goto-calls to adapt the sequence's execution flow for the needed task.
Please note that you should include all steps which contain shutdown routines in the cleanup stepgroup.
hope this helps,
Norbert
01-26-2009 11:14 AM
Goose -
Note that you can also enable the option, "Immediately Goto Cleanup on Sequence Failure", on the Sequence Properties dialog box in the sequences where you want this to occur on a sequence file basis. This way the execution would jump to the cleanup and return it its caller. The station option mentioned above is a heavy handed setting and you might not want this to apply to all sequence files that you execute.