Example Code

Display .JPEG file on front panel and set position 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 show how to automatically size the image box to fit the image and position it on the front panel accordingly.

 

Description

In this Example, you can change the position of the image in runtime, This small piece of code follows a request from a client to have a .JPEG image moving on his front panel (e.g. scrolling a banner).The code prompts for an image path and position when run. The image box will then automatically size to fit the image and position it on the front panel accordingly.

 

Requirements:

  • LabVIEW 2012( or compatible)

 
Steps to Implement or Execute Code

  1.  Run the vi.
  2. Click Button"Display JPEG"

 

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

Eden S
Applications Engineer
National Instruments UK & Ireland

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