Example Code

Change Boolean LED Indicator and Text in LabVIEW

Code and Documents

Attachment

 

Overview

Demonstrates how to use Property Nodes to change boolean LED indicator colors and text.

 

Description

This example uses Case Structure to select the color cluster constant based on the number of iteration of While Loop. The cluster is a cluster constant with two color box constants in it. The Colors property in Property Node takes in a 1D array of a cluster with two elements. Iteration number is converted into a string and displayed using BoolText.Text property in Property Node. While Loop is used to run the program until the number reaches 30.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program
  2. The boolean LED indicator will change color and text
  3. The program will stop when the LED text indicates number "30"

 

Additional Information or Resources

VI Block Diagram

 

BD.png

 

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

Thanks,

Rita Prather
Software Product Manager
rita.prather@ni.com
National Instruments

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