Example Code

Adding Color Levels to a Tank 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 example program demonstrates how to manipulate the sliders of a tank indicator to display different colors at various numeric ranges.

 

Description

The idea with this code is to change the color of a slider indicator in order to have different colors at various ranges. This might be useful to alert the user with colors that the slider has passed a specific limit.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code 
1.Set the High and Low Limit controls to adjust the color transition levels.
2. Set the colors for each level.
3. Adjust the Value of Tank control and observe.
4. Finish execution with the Stop button.

 

Additional Information or References

Front Panel:

Screenshot_2.png

Block Diagram:

Screenshot_1.png

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