Example Code

Create HTML Reports with Front Panel Images in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW Report Generation Toolkit
  • LabVIEW

Code and Documents

Attachment

Overview
This VI demonstrates how the Report Generation VIs can be used to generate HTML reports that include the Front Panel image of the Create Reports with FP Images VI or another VI on disk.


Description
In LabVIEW you are able to generate HTML reports that include images. This VI will always generate a report for itself when the user clicks the Finish Test button. This example uses an event structure for asynchronous control.  The block diagram code can easily be added to existing VIs in order to implement this feature without requiring any code changes.


Requirements

  • LabVIEW 2012 (or compatible)
  • NI LabVIEW Report Generation Toolkit for Microsoft Office


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Create Reports with Front Panel Images LV2012 NI Verified.vi"
  3. Select the path to a HTML file
  4. Run the VI
  5. Press Print this VI or Print Another VI
  6. Press Finish Test
  7. Observe the HTML file created

 

Additional Information or References

VI Block Diagram

 

Create Reports with Front Panel Images LV2012 NI Verified.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Mark
NI App Software R&D

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting! Could you please rename your attachment to include the LabVIEW version? "_lvXX.vi" would be fine. Also, include a screenshot of your code if you have one.

Todd S.
LabVIEW Community Manager
National Instruments