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

Basic UI LED control

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

Download All

Overview:

This VI exemplifies how to make a VI blink based on the user desired blinking time.

Description:

This VI takes an LED on the front panel and simply turns it on and off based on
how much time delay the user specifies. It shows the use of a simple case structure that alternates
back and forth, with a wait function inside of the second case.

Requirements:
LabVIEW Base Development System 2012 (or compatible).

Steps to Implement or Execute Code:
1. Open the attached VI "User Defined Blinking Time LV 2012 - NI Verified.vi".
2. Run the VI.

Additional Information or References:


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

Chris Van Horn
Applications Engineer

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