Example Code

Simple Alarm Clock

Code and Documents

Attachment

Overview

Alarm Clock that displays the time and beeps when the alarm is on.

Description

Simple VI programmed to work as an Alarm Clock, implemented by a state machine design pattern.


Steps to Implement or Execute Code

  1. Run the application
  2. If you want to set the alarm, press the 'Se Alarm' button.
  3. Enter the 'Hour' and 'Minute' for the alarm settings.
  4. When the alarm is on, a 'Beep' sound will continusouly be on.
  5. Press the 'Stop Alarm' to stop it.
  6. Press the 'Stop' button to terminate the application.

Requirements

Software

LV 2013 or higher

Additional Images (Front Panel)


front pannel.PNG

Additional Images (VI Snippet)

Alarm Clock.png


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

Contributors