Example Code

Alarm Clock

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 a simple alarm clock that lets displays the time and date. It also lets you set an alarm and lights an LED when it rings. It also has a 5 minute snooze.

Description

This is an example can display the time and date and you can also set an alarm. The LED lights when the alarm rings, and you can choose to turn off the alarm clock or 5 minutes snooze.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Time and Date indicator display the current time and date.
  3. Click Alarm control to set hour and minutes of alarm.

 

Additional Information or References  

VI Snippet

124.png

 

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

LabVIEW 8.2,8.6,2009...still learning 😛

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