NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Print Failure on Label

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 7
(4,272 Views)

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

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 7
(4,256 Views)

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.

 

 

0 Kudos
Message 3 of 7
(4,227 Views)

Hi,

 

TestStand will automatically provide the step data.

Check the Parameters of the Callback, there you will find all the stuff you need.

 

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 7
(4,225 Views)

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

 

 

0 Kudos
Message 5 of 7
(4,219 Views)
Solution
Accepted by logatto

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 7
(4,208 Views)

Thanks. You addressed me to to the right way.

0 Kudos
Message 7 of 7
(4,190 Views)