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

Displaying Digital Clock 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

Download All

Overview
This application displays the real world current time as a digital display as you would see on an old digital alarm clock.


Description
The attached VI shows how to convert the current time into array elements in order to populate the individual second/minutes/hours arrays. The program uses custom controls consisting of LEDs and clusters to form the digital display.


Requirements

  • LabVIEW Base Development System 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder "Digital Clock 2012 NIVerified.zip"
  2. Open the project file "Digital Clock 2012 NIVerified.lvproj"
  3. Open the “Digital Clock 2012 NIVerified.vi”
  4. Run the VI

 

Additional Information or References
VI Front Panel

front.PNG

VI Block Diagram

block.png

 

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


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

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