NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting "non-result" outputs from a step

I have programmed a Pass/Fail step that optimises a system parameter and returns True/False according to whether it achieved its target range.
However, there are also some diagnostic parameters that I would like to report to show how well the optimisation is converging.
What is the simplest way to add these parameters to the report? I am currently mapping them into a set of local sequence variables. Is it possible to append these to the end of the report?
Many thanks for any help.
0 Kudos
Message 1 of 4
(2,917 Views)
Format all parameters into a string and assign it to a string variable. In the post expression statement, add Step.Results.ReportString = whatever your string variable is. You should see this string show up after the test results in the report. It's like a comment field.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(2,917 Views)
Hi Nick,

I have attached a docemet below, which describes the function you are looking for.

Best Regards

Atul Wahi
NI
0 Kudos
Message 3 of 4
(2,917 Views)
Many thanks for the two answers above.

The insertion of text into Result.ReportText appears most useful during development when the data to be returned in usually in flux and required simply to be in the report for human review.
On the other hand, the technique for adding result fields dynamically looks as if it will be more useful for the longer term, when the information is to be stored in a database for later retrieval and processing.

Nick
0 Kudos
Message 4 of 4
(2,917 Views)