NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Customized Sequence Failed Banner

Solved!
Go to solution
Hello,

I had tried to customize the Sequence Failed Banner. I want that the user can see what failure occured. Therefore I had build a vi. This vi get the information from the Parameters.UUT.CriticalFailureStack (Step Name, Sequence File Name and Report Text (Locals.Result)) and displayed it on the screen (instead of the old Sequence Failure Banner).

But I have a few problems this works only if Report Generation is aktiv and only for the first time.
I think I must copy the data when a failure occured, but I don`t want to modify each step.
Have somebody a solution or an example??

Thankyou

and greetings

Schwede
0 Kudos
Message 1 of 8
(4,202 Views)
Hi,

The banner is called when the PostUUT sequence is invoked which means you must have executed a sequence using the process model entry points "Single Pass" or "Test UUT's". The banners are not displayed when run interactive mode i.e Executive , also in this mode you do not get a report generated.

If you need a banner in the interactice mode, you could use one of the Interactive Override Callback, SequenceFilePostInteractive would be a good start. Or run you steps using 'Run Selected Steps Using...' menu item. This will use either of the Process Model Entry Point and therefore gernate a report and display the banner.

The Failure banner is only called if the precondition on the step in the PostUUT sequence is true e.g. Parameters.Result.Status == "Failed".

Hope this help.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 8
(4,200 Views)
Hello,

thank´s for your answer. I have already made a banner with field`s for my informations. And I have replaced the old banner, so if a failure occured my banner is displayed on the screen. The field UUT number (displays the UUT number) works fine too.
The problem is to get the last failure message (from the stepp were the failure occured).
I think I must use the same procedure (like in the report generation) to copy the failure informations on the failure stack.
Were can I find the "Interactive Override Callback, SequenceFilePostInteractive"?

greeting´s Schwede
0 Kudos
Message 3 of 8
(4,190 Views)
Yes!

Now I have the solution:

- in the CleanUp Sequence I copy the Locals.Result data to StationGlobals.Result
- then I build my new FailBanner.vi
- this vi search the StationGlobals.Result data after the expression "Failed"
- if it is found the data of this set of data is copied to the frontpanel
- finish

Message Edited by Schwede on 03-08-2005 03:52 AM

0 Kudos
Message 4 of 8
(4,188 Views)
Hi,

That's great :).

One small suggestion, You could make use of the SequenceFilePostFailureStep callback to pick-up the failed step result and store in the StationGlobals. Also you would only have to hold one result in the StationGlobals. That way you dont have to search through all the results held in the resultlist. You can find the Callback sequence to add to your sequencefile, in the SequenceFile Callback Dialog, found in the Edit menu.

Regards
Ray Farmer
Regards
Ray Farmer
Message 5 of 8
(4,182 Views)
That is a good idea!

But where do I find the StepResults?? I only find the ReportText, Status, .... but not the StepName, StepType.

Greetings Schwede
0 Kudos
Message 6 of 8
(4,179 Views)
Hi,

The Step and the Result are passed as parameters to the sequence.

You can pick out the Step name and Step type by either:
1. Using ActiveX adapter steps and using the step as a reference. Then you want to select the Step and the Property will be Name to obtain the step name. Create a second step but this time select StepType. This will give you a StepType reference which you use as the reference in a third ActiveX step, you will need to create a Locals ActiveX reference variable to hold the returned reference. In this step you select StepType instead of Step and again select the property Name.


Or
2. As you are using labview you can do this in your VI. If you are not fimilar with using TS API calls in you Labview, have a look in the TestStand Programmer's Help, there is a section Using the API in different programming languages.

There is also an example using the SequenceFilePostFailureStep callback in the TestStand\Examples\Callback folder

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 8
(4,176 Views)
Solution
Accepted by topic author Schwede
Hi,

Attached is a TS2.0.x version of using ActiveX Adapter to call TS Api functions to get Step name and step type.


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 8 of 8
(4,164 Views)