To download NI software, including the products shown below, visit ni.com/downloads.
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.
Insert Graph Image Into Report - TS2013.zip
TestStand 2013 SP1 or compatible
LabVIEW 2013 SP1 or compatible
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.