Virus scan in progress. Please wait to download attachments.
This example embeds an image of a LabVIEW graph control into a TestStand report by embedding the image as HTML code, which is inserted into the ReportText property of the step. The example includes a VI that you can use in your own code modules to add this functionality.
While TestStand provides a built-in capability to display a graph of numeric data within a report, there may be cases where you want to display a customized LabVIEW graph or other control in a TestStand report. This example illustrates the process of embedding an image of a LabVIEW Waveform Chart control in a TestStand report.
The example uses the Get Image method of a LabVIEW control to get an image of the control and converts it into a PNG image. It then encodes the PNG image into Base 64 encoding and generates an HTML string representing the image. This string is passed back into TestStand and used as the ReportText for the step, which causes the image to be displayed in the report generated at the end of the TestStand sequence.
Hardware and Software Requirements
Insert Graph Image Into Report - TS2013.zip
TestStand 2013 SP1 or compatible
LabVIEW 2013 SP1 or compatible
Steps to Implement or Execute Code
Run the sequence using Execute » Single Pass
Observe that the graph from the code module appears as an image in the report
Additional Information or References
Al B. Staff Software Engineer - TestStand CTA/CLD
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.