NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i output a table in a teststand report

I'm using TestStand 3.0 and Labview 7.0. I have a string table in my labview step that i want to see in the teststand report. How do i do this? thanks
0 Kudos
Message 1 of 5
(5,088 Views)
Hi arj,

If you want the data in the LV table to be formatted in an html table in your TestStand report the easiest way is probably to create an html string representing a table and assign it to the Step.Result.ReportText field.

I've attached a .seq and .vi file illustrating how to do this.

Best Regards,

Matt P.
Applications Engineer
National Instruments
Download All
Message 2 of 5
(5,088 Views)
Matt, Nice job. Thanks for the example. It would be nice if a feature to do this is added in the next version of teststand or labview.
0 Kudos
Message 3 of 5
(5,088 Views)
Hi
 
I am trying to pass a table indicator data(2D Array) to Teststand and make a report (XML) in teststand in the sameway with 3 columns and 8 rows.and i would like to add column and row in the report and edit column headers.help me in doing so....
it will be great if u can send me some samples.
 
Regards,
J.Venkatesh
 
0 Kudos
Message 4 of 5
(4,841 Views)
Hello, J.Venkatesh!

In the future, we'd really appreciate it if you'd create new forum threads for new questions - this allows us to better manage the forums and gives our users the ability to search for questions by forum thread/topic!

That being said, the solution provided by Matt P. in 2004 still applies to you.  Even though you're using a TestStand XML report and a LabVIEW Array instead of a LabVIEW table, you can still embed HTML tags into the XML report.  Simply index into and parse your LabVIEW array into strings, include the appropriate HTML table tags and then pass this HTML string back to TestStand.  This string can then be placed into the Step.Result.ReportText field of any step and will be formatted into a table, as you desire. 

Modifying Matt's LabVIEW VI is as simple as replacing the LabVIEW table with a LabVIEW array and then using a Number to Decimal String.vi in order to cast the numbers as strings - those are the only modifications you need to make!

I hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 5 of 5
(4,808 Views)