03-04-2010 12:12 PM
Is it possible to check the status of the current seqeunce during main execution or just in cleanup.
I was hoping to set a precondition for my steps in main that if execution has errored or failed do not execute the step - I suppose on fail I am aswell just jump to cleanup..
Thanks,
Shane.
03-05-2010 01:02 AM
03-05-2010 08:51 AM
There is also a global setting (station options dialog at the bottom of the first page) to goto cleanup on failures.
-Doug
03-05-2010 01:04 PM
Hi,
Thanks for the replies.
I tried ThisContext.RunState.SequenceFailed but it doesn't seem to update until cleanup.
Also I only want certain steps to jump to cleanup so I don't want to use a global setting.
I have posted another post on trying to jump to cleanup using the property loader - I can't seem to get the syntax correct.
http://forums.ni.com/ni/board/message?board.id=330&message.id=28162#M28162
Maybe one of you guys can help with this?
Thanks & Regards,
Shane.
03-06-2010 04:43 AM
Hi Shane,
I have re-tried RunState.SequenceFailed on my TS 4.0 maschine in an example
and it is working a suspected. It is updated once a step has been failed!
Note: All steps has been set on default as Step Failure cause Sequnce Failure. This should not be disabled, of course!
In your case i would use the step post action and jump on fail to cleanup.
Just take a look on the example.
Hope this helps
juergen
03-08-2010 08:17 AM
Hi,
Thanks for the example sequence file - it ran as you outlined - I must have had something wrong with my implementation when I tried it out. I will look at this again.
Thanks & Regards,
Shane.