12-06-2010 12:18 PM
Hi, at the and of the test, in case of a failure, I have the need to print the failure message on a Label. I have to print: SequenceName, testName, measure, limit high, limit low.
Is there something already implemented in TestStand? What is the correct approach, should I use the "SequeneFilePostStepFailure" callback?
Thanks a lot.
Solved! Go to Solution.
12-07-2010 12:56 AM
Hi Logatto
If this is my task, i would use the "PostUUT" callback for printing the label.
For collecting the failure stuff during test i would use "SequeneFilePostStepFailure" callback that you mentioned,
extract what i need and store it in a FileGlobals container.
Hope this helps
Juergen
12-09-2010 04:44 AM
Ok, thanks. Some more doubts.
How can I pass to the to "SequeneFilePostStepFailure" callback the information of the step who called it? For Example Step Name. Or more important, how can I know if the type of the step is numeric limit Test, pass/fail, multiple...?
Thanks a lot.
12-09-2010 05:58 AM
12-09-2010 06:38 AM
Correct, I did not realize that the parameters are filled in runtime.
The only thing I cannot find is the name of the step who calls the callback. Can you give me a suggestion?
Thanks a lot
12-09-2010 02:04 PM
Hi,
Try to use "Parameters.Step.Name"
Why you won't see it? Because you are accessing the Object Step. and its Property Name
For more info look in TS-Help under Index "Step"
In this Thread there is a nice Example about this callback
http://forums.ni.com/t5/NI-TestStand/Repeating-a-Failed-Sequence-once-more/m-p/1042268
Regards
Juergen
12-11-2010 04:58 AM
Thanks. You addressed me to to the right way.