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

Analog 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

The example displays analog clock using picture functions.
 
Description

The example demonstrate analog clock using picture functions and Queued State Machine (QSM) architectures. The hour hand and minute hand is drawn by Draw Line VI in 2D Picture Control.


Notes: Second hand is not available.


Requirements

  •  LabVIEW Base Development System 2012 (or compatible) 

 

Steps to Implement or Execute Code

  1. Download "Analog Clock 2012 NIVerified.zip"
  2. Open project "Analog Clock 2012 NIVerified.lvproj"
  3. Open VI "Analog Clock 2012 NIVerified.vi"
  4. Run the VI.

 

Additional Information or References

VI Front Panel

 f.png

 

VI Block Diagram

SnapCrab_Analog Clock [Analog Clockvi] Block Diagram on Analog ClocklvprojMy Computer_2017-7-25_22-25-33_No-00.png


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

Regards
Prabhakant Patil

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