Example Code

Load JPEG Picture and display it using 2D Picture Indicator

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 is a really simple program to read from a JPEG file and write it to a 2D picture indicator.

Description

Loads a jpeg image and displays it using 2D picture indicator. To run this example you don't need the Vision Development Module.

2d pic ctrl snippet.png

If you have LabVIEW 2009, feel free to use the snippet above. Else I have attached a version in LabVIEW 8.0. For more information on this simple process please reference Can I Import Pictures into a Picture Control?

Requirements

LabVIEW 8.0 "or compatible"

Steps to Implement or Execute Code

1.) Select the jpeg image using the file path input

2.) Run the example code

Additional Information or References

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit thisdiscussion thread**


--Michelle

National Instruments

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

Contributors