Example Code

Highlight Array Element

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

Download All

Overview

This example highlights an element in an array with the color you choose.

 

Description

This example highlights an element in an array with the color you choose. It works because the background of the array is transparent and an array of color boxes is located behind the transparent array. Changing the color box array determines which cell of the top array is highlighted.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Specify which cell in the top array is highlighted and the highlight color. 

 

Additional Information or References

Front Panel

1.PNG

 

Block Diagram

3.PNG

 

4.PNG

 

Making this look nice on the front panel just takes some precise resizing and transparency tweaking. Good luck!

 

 

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

Product Support Engineer
National Instruments

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