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

Programmatically Change Meter Colors Using 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

Use this VI to programmatically change the color of a meter indicator.


Description

This example demostrates how  to programmatically change the color of a meter. This application bundle couple composed by color box constant togheter and then change meter indicator colors using a Property Node.


Requirements

  • LabVIEW 2012 (or compatible)

 
Steps to Implement or Execute Code

1. Looks at meter scale color
2. Run VI
3. Looks that color scale is changed

 

Additional Information or References
Top VI Block Diagram

Meter Color Change LV2012 NI verified.png

 

 

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

 

A_Ryan
AES
National Instruments

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