Example Code

Digital Stop-Watch 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

Overview

This example shows how to build a digital stop watch in LabVIEW.

  

Description

Sometimes finding the simplest things can be tricky. Occasionally you need to be picky about your user interface and when it comes to a digital stop watch, that is something that LabVIEW doesn't have right of the box.  I created 3 different VIs and 3 helpful examples to go with them.  Each VI creates a digital stopwatch with a different method (one uses Boolean Clusters as a LED type display, the second uses a string control , and the third uses an array of string controls).  I even have attached a special font that will make it look like your alarm clock at home.

 

Enjoy!!!

 

Steps to Implement or Execute Code

  1. Download and unzip the Digital Clocks.zip file or the Digital Clocks_withPause.zip file
  2. Open one of the three examples to see the different technic use
  3. Run the VI and configure the options to turn on/off initialization, turn on/off auto reset, and/or turn on/off the blink and frequency of the blink

Requirements
LabVIEW 2012 (or Compatible)

  

Additional Images

 

Screenshot of the Digital Stop-Watch Control

clock.JPG

 

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

Joji

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

Comments
huz
Member
Member
on

Hello,

I was wondering if you could help me. I am your count down program (which I have slightly modified). This is an excellent program.  I wanted to add a Pause/stop to your program.  I can you the modified version of your program if needed. Can you help me?

Joji
NI Employee (retired)
on

Hi Huz,

I have added a second version of the digital clocks with a "Pause" input.

Joji