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

All Built In Function & Control Palette Icons

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

    Operating System

  • Linux
  • Mac OS X
  • Windows

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

Download All

Description

The Read Palette.vi & Write Palette.vi VIs return built in function & control primitives as "BUILT_IN_FUNC_xxxx_x_x..." with no way to get the item's name or icon. To remedy this, the following snippet is an export of the 910+ built-in function & control palette items:

 

 

All icons were converted to 256 color (8-bit) images with an background color of RGB:153,255,0 to apply a mask. Attached is a zip containing all exported 32x32 (8-bit) PNG images including a text file to translate the built in names to display names.

 

Justification: The private methods App : Palette : Get Palette Menu Info and App : Palette : Get Palette Item Icon do not return some primitive icon images correctly (due to the Windows Metadata File (*.wmf) image format or 1-bit masking issues) thus the reason to embed the image data directly within the VI.

 

Sprite sheet of supported functions: 

 

 

How to Use

Read the palette items from the Read Palette.vi, use the built in item path ("BUILT_IN_FUNC_xxxx...") to lookup the icon and display name to return.

 

 

 

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

Contributors