Example Code

Programmatically Control LED Blinking Colors

Code and Documents

Attachment

Download All

Overview
This example will loop through different LED true and false colors to simulate different colors of a blinking LED.

 


Description
Using the property nodes, it is not possible to change the color that an LED will blink, only the true, false, true -> false, and false -> true states. This example will loop through different LED true and false colors to simulate different colors of a blinking LED. 

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached file to your computer
  2. Open the VI " Blink LED 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet

 Block Diagram.png

 

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

Applications Engineer
National Instruments

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