Example Code

Easy VI Icon Updater 1.0 and 2.0

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
  • LabVIEW Communications

Code and Documents

Attachment

Overview

This example allows you to easily update your Icon within your VI.

 

Description

The Icon Updater 1.0 which allows you to easily update your Icon within your VI. Now we should all be updating our Icons to show appropriate images but sometimes you just can not be bothered. Well here is the way around that, all you have to do is place this SubVI in your code run your code once, select an image, then your done. You can now remove my subVI from your VI.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Place my SubVI in your block diagram and wire a "This VI" Reference to it. (notice that the Icon is the default Icon).
  2. Run your VI, a browser will open with google images search for the name of your VI, in this case "temperature" and a dialog box will pop up in LabVIEW. First select an image and save it to your PC. (this can be anywhere but remember where)
  3. Select the saved image in the LabVIEW dialog box (remember where you saved the image).
  4.  Notice that your Icon has now changed.
  5. Remove the SubVI and carry on coding.

 

Additional Information or References

VI Snippet

161.png

 

Currently, an update that cut out the saving of the image and just update the Icon with the first image in Google images, so watch this space. Icon Updater 2.0 now available.

 

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

Dan Vickers - Applications Engineer UK and Ireland

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