NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation Tutorial

Hello NI (Teststand) community,

 

I recently started using TestStand and by reading through the examples and tutorials provided by NI I was able to quickly set up a sequence according to my needs.

Now I´m encountering problems with the report generation I can't seem to find a solution for, thus I'm seeking for help here.

 

My setup consist of a sequence that populates an 1D array of cluster elements in my "Parameters.[..]".

What I´m trying to do is to generate a report that displays the (numeric) values in a table next to each other (like an excel sheet) as well as displaying two of the values as a x/y graph.

 

I`ve read through the corresponding manuals and help files but couldn't find any suitable explanations for a total TestStand beginner,  so I`m hoping that someone here is willing to give me an  walktrough for my problem.

 

regards,

emia

0 Kudos
Message 1 of 7
(3,699 Views)

As far as I can tell, your default options for including arrays in reports are EITHER as a graph or as a table (though the table is not an Excel-like 2D table).

 

You have at least a few options:

1. Create a custom XML stylesheet such that it can display both graphs and tables. (This seems like a lot of work.)

2. Create two reports where one displays arrays as a graph and the other as a table. (probably not what you want)

3. Create the report in your desired language, such as LabVIEW or maybe export to Excel, and then just print out the screen capture.

 

Pulido Technologies LLC

 

0 Kudos
Message 2 of 7
(3,664 Views)

Thanks for the answer, I'll keep that in mind and will try to generate a jpg and add that to the report (this seems to be possible).

 

Regardless of that I'm still not able to figure out how to get the report to plot the data of my Parameters in either of those ways, so I'd still be grateful for any advice or walkthrough regarding that.

 

Regards,

emia

0 Kudos
Message 3 of 7
(3,651 Views)

I think you should use 'Additional Results' step type and log the result.

Kuddo welcomed
CLAD-CTD
0 Kudos
Message 4 of 7
(3,636 Views)

I like to start with the DisplayArrayinReport.seq, which you should find in the examples folder. (For me, this is C:\Users\Public\Documents\National Instruments\TestStand 20xx\Examples\DisplayArrayInReport ).  Play around with that example to get a feel for what's happening.

 

Copy the Custom Action Step into your sequence. I would change the Adapter to None and then in Expressions->Post-Expression, I would set Step.Result.ResultArray to your array.  

 

You also need to go to Configure->Result Processing and go to the Report options for your report.  For Include Arrays, choose "Insert Graph".

 

Pulido Technologies LLC

 

0 Kudos
Message 5 of 7
(3,631 Views)

Thanks again for the reply,

sadly it seems like the example you mentioned is no longer included with the default examples / available online:

http://zone.ni.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/examples/

 

Due to the restrictions in the combining of graphs/tables you mentioned I decided to limit my Results to an html file, displaying a 2D array of my parameters, but I still ran into two issues while attempting to do so:

How can I configure Teststand to only display my Table, without also including every single step result?

How can I add labels to the columns of my table?

 

Any replies are, as always, much appreciated

0 Kudos
Message 6 of 7
(3,588 Views)

Here, my 2 cent may be useful to you

 


How can I configure Teststand to only display my Table, without also including every single step result?


If it is simple array data than Instead of insert graph, you can use Insert Table from Report Option and for excluding  single step result you can disabled Result Recording Option of this step.

 


How can I add labels to the columns of my table?

I think you should custiomize report style sheet(Depend on report format) to generate report according to your requirement.

 try example program that provided with teststand for customizing report  (C:...\National Instruments\TestStand 2016 (64-bit)\Examples\Customizing Result Processing)

Kuddo welcomed
CLAD-CTD
0 Kudos
Message 7 of 7
(3,577 Views)