Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Dec 20, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

How to Insert a LabVIEW Control Image into a TestStand Report

7 ratings | 3.57 out of 5
Print

Overview

All LabVIEW controls can output image data that can be saved to file; this example shows how to save a chart image to file and insert this image in a TestStand report.

Downloads

Filename: insert_image.zip
Requirements: View

This example program illustrates the process of including an image representing a Waveform Chart in your post-execution report. This program first gets the directory to which the execution's report will be saved. Next it calls the included LabVIEW .VI that generates a chart and saves its image data to the same directory as the report will be saved, serializing the image name to match the UUT's serial number, if one was entered.

The included virtual instrument simply logs 1000 random points to a waveform graph and uses the image data from the chart to write to a .PNG file.

Requirements:

  • Ensure that your report format is set to the HTML Document or XML Document type by navigating to Configure» Report Options... and selecting HTML Document or XML Document from the Report Format Combo Box.

Note:

For simplicity's sake, this example shows the VI's Front Panel when called. This is due to the fact that the waveform chart's image data is only updated when the control is visible. This can be avoided by different programming techniques, but for the purposes of this simple example program this is the easiest way to achieve the desired results with the smallest amount of code.

Requirements


Filename: insert_image.zip

Software Requirements


Application Software: LabVIEW Base Development System 7.1, NI TestStand Development System 3.1
Language(s): LabVIEW

 
7 ratings | 3.57 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).