From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Save Multiple Front Panel Controls to One JPG File Using 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

Overview

This example shows how to use an Invoke Node to save front panel controls to a JPEG file.

 

Description

In LabVIEW, we can use the Get Image Invoke Node to return the image of a front panel object and then we can save it as a JPG file by writing the image data to a JPG file. However, if we want to save multiple control images to one JPG file using this method we need to put these controls in a cluster first and create an Invoke Node from the cluster.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Specify a file path to save the JPG file.
  2. Run the VI.
  3. Click on Save when you want to save the wave graph image.
  4. Check the resulting JPG file by browsing to the location where you saved it.

 

Additional Information or References VI Block Diagram

VI Snippet

savemultiple.png

 

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

 

 

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

Comments
Technical_details
Member
Member
on

In this example if we try to save the control after converting it to image the clarity of the control in the image format is missing when you zoom it. Is there alternate method to save the control in pdf / word without converting it to image in order maintain the clarity even when we zoom.