02-23-2009 11:50 AM
Thanks
Alexandre
02-24-2009 01:21 AM
Hi Alexandre,
if you like this: (I want the operator to stay away from the big grey popup) you may disable this for you maschine ! Under StationOptions Tab Execution there is dropdown List "On Run-Time Error" there you can select "Run Cleanup". Now you can perform your error handling
there.
Hope this helps
Juergen
02-24-2009 08:33 AM
Alexandre,
there are many ways to accomplish your task.
Here's a small list:
- Disable default error handling and "do error handling in your sequence" (using gotos with precondition)
- Use the SequenceFilePostStepRuntimeError Callback
- Handle the retry-functionality within your codemodule
I'd suggest you to choose either the second or third option. As Juergen already stated, you can alter the behaviour of TS in regard to runtime errors. The default behaviour displays a dialog asking the operator on how to react. On automated systems, this setting is nonsense, therefore it is suggested to switch to "Run Cleanup". I wouldn't choose any other setting here.
Using the Callback Sequence is nice since it can be used in a very general way and you can call certain alternativ test strategies if the instrument fails to work.
Implementing the error handling within the codemodule nevertheless optimizes execution times and could be better in other aspects as well. But on the other side, you have to deside what should happen if the error cannot be solved by the module itself.....
hope this helps,
Norbert
02-24-2009 10:27 AM
Hi Norbert,
Thanks for pointing the SequneceFile Callback ! I have forgotten it
You are right about the nonsense becaue
in all my stations in procduction field i have activated the pop. This is the
extremly good way to find MY own programming errors. If you disable
this you will never get suitable results.
I just want to point out that there is a Station wide setting where you can
can turn/off.
Thanks
Juergen
Juergen
02-24-2009 10:59 AM
Thanks all!
It confirms what I had in mind ( I just saw that my little algorithm using the Post runtime error and Post step callbacks was diplayed all fuzzy. Thanks to copy-paste from Word...).
Alexandre
03-01-2012 05:09 AM
I know this is an old thread, but i have another method for the same thing, easier in my opinion:
- Make Custom Looping on the step
- Loop While Expression:let's say you want to try 4 times before stopping and only need one "pass" ( = one iteration without errors)
(RunState.LoopIndex < 4 && RunState.LoopNumPassed < 1) && !Step.Result.Error.Occurred
- Loop Status Expression: RunState.LoopNumPassed >= 1 ? "Passed" : "Failed"
This way you don't need to modify your vi's and dont have the callbacks.
11-13-2013 07:04 AM
how can i track if in a "big sequence" a step had an error (= and looped for e.g. 2 times)