NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I insert a comment in the TestStand report

Solved!
Go to solution

Hi There,

 

I would like to add a comment to the report generated by TestStand 4.

 

The String 206 is an error code and I would like to print out the comment “ RS485 Failed please check connector SK2”

 

This is the actual generated report:

  *********************************************UUT ReportStation ID:              XPGBNEWMFG1747Serial Number:           NONEDate:                    02 September 2009Time:                    15:17:45Operator:                AdministratorExecution Time:          70.6712946 secondsNumber of Results:       67UUT Result:              Failed********************************************* Begin Sequence: MainSequence(C:\testprog\UT70.seq)     End Sequence: 02_Init_System Internal self - test:          Failed    Begin Sequence: 04_Internal self-test on UT70   (C:\testprog\UT70.seq)    3.3 Read 0100 = 199 :          Failed        String:                   206   RS485 Failed please check connector SK2 my comment to add..        Limits:           String:                199        Comparison Type:          Ignore Case        Number of Loops:          250        Number of Passes:         0        Number of Failures:       250        Final Loop Index:         250    End Sequence: 04_Internal self-test on UT70  End Sequence: MainSequence End UUT Report Kind regardsMarken
0 Kudos
Message 1 of 7
(7,995 Views)

Can you tell us which report format you are using?

 

  • Text
  • HTML
  • XML
  • ATML 


Also, what type of code module will provide the error text

 

  • LabVIEW
  • CVI
  • DLL Call
  • ???
0 Kudos
Message 2 of 7
(7,986 Views)

Hi,

 

Any errors usually get included in the report as default.

 

But you could put the text into the step.result.reporttext.

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 7
(7,981 Views)

I have a case statement to evaluate a loop. I run and self test inside the UUT and just waiting for the result. If the result is 199 unit has passed. If the result is between 200, 201…208 they are related to different errors. In the case statement I have a message popup step that evaluates the result. A message pops up for the operator information and I would like that the message information to be printed for the repair tech information.

 

I have try to put in post-expresion of the step some like Step.Result.ReportText = =" RS485 Failed Self-Test failed" but it did not print.

 

Any suggestions are very welcome.

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

Hi,

 

The ReportText of a step is added to the report only if the Record Result is enabled for that step.

 

And you must use a single "=" in your expression : 

 

Step.Result.ReportText = "RS485 Failed Self-Test failed" (you wrote Step.Result.ReportText == "RS485 Failed Self-Test failed")

 

 

Bruno

0 Kudos
Message 5 of 7
(7,950 Views)

Hi Bruno,

 Thanks for the advice.

I have tried with one = but the message is only printing when the Report option result filtering Expression is set to All results. I want the comment to be printed on the report when the Filtering expression is set to Exclude Passed/Done/Skipped.

What I am missing out?

 

Thanks

marken

0 Kudos
Message 6 of 7
(7,944 Views)
Solution
Accepted by topic author Marken

What is the type of the step with the Report Text ?

 

If you are using the MessagePopup step, the result status is "done".

 

The filtering expression you are using excludes passed, done and skipped status. You keep in the report only the steps that have a failed or error status.

 

The MessagePopup has a done status => not included in the report => report text not displayed.

 

If you want to display the report text you should set the report text of a failed step (the NumericLimitTest of your measurement ?).

 

Bruno

0 Kudos
Message 7 of 7
(7,940 Views)