01-28-2010 01:24 PM
When a step fails I want to put some text out into the report with a failure path. I added the Callback "SequenceFilePostStepFailure" and added a function statement "Parameters.Step.Result.ReportText = FileGlobals.msgText" but my text doesn't get into the output.
What's going wrong? Am I useing the wrong callback? doe the paramenters not really put data out to the report? what do I need to do to get the information out?
TestStand 4.2
01-28-2010 10:38 PM
Hi Joe,
I'm not sure why this is not working for you. I tried what you have said. It worked fine for me. I'm attaching the sequence that I tried.
Thanks
01-29-2010 07:03 AM
Thanks for the help, I figure out the problem, not the solution.
I was putting text into my FileGlobals.msgText as a parameter passed back through a return parameter in the same step that was failing and no data was showing up in it. When I put text (as a test) in FileGlobals.msgText the step prior to the failing step, the text get's into the FileGlobals and the text gets to the report.
I also tried putting data into the FileGlobals.msgText as a pre-expression and the data didn't get out there.
So the problem becomes, if the callback happens on a failure step failure, why aren't the FileGlobals being updated in that step?
I'll ask the NI people. But I have some ideas to try.
Thanks for your help.