Example Code

Print VI's Front Panel for 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

Code and Documents

Attachment

1. Overview

This example code prints the Front Panel of a VI.

 

2. Description

This example shows how to use the method "Panel to Printer" with a VI reference. It prints just the front panel to the current printer.

 

3. Requirements

  • NI LabVIEW Base Development System 2012 (or compatible).

 

4. Steps to Implement or Execute Code

  1. Download and open the example VI.
  2. Confirm that the default printer in File >Print Window is the one you require.
  3. On the front panel of this VI, use the control select VI/File to choose the VI of which you want to print the front panel.
  4. Run this VI.
  5. If you wish to save into a PDF instead of printing, select a device to do so in the printing preferences of your computer
    (Microsoft Print to PDF, Microsoft XPS Document Writer, CutePDF Writer, etc.)

 

5. Additional Information or References

Print VI Front Panel Screenshot.PNG

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

Kind Regards

Michael
NIUK Application Engineer

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