Example Code

Change Control Color When Threshold Value Exceeded in 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 code snippet functions well as a subVI to specify a threshold value.


Description

This code snippet functions well as a subVI. It allows the user to specify a threshold value, and when that value is exceeded a control or indicator on the front panel will change color. For instance, if an overtemperature condition occurs in an oven (actual temp = 100 degrees, overtemperature set to 90 degrees) the temperature indicator may change from green to red. Enjoy!


Requirements: LabVIEW 2012 (or compatible), Hardware: none.


Steps to Implement or Execute: Use as a subVI in your code. Connect the corresponding values.


Additional Information or References:

 

Change Control Color When Threshold Value Exceeded in LabVIEW BD.png


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

 

David G
Sales Engineer - SE Michigan & N Ohio
National Instruments

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