LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you build an anolog clock (like a wall clock) in labview?

I am displaying a digital clock on the front panel of labview 7.0. But I would like to build an anolog clock(like a wall clock) and have it display time like your wrist watch.
0 Kudos
Message 1 of 6
(5,298 Views)
The easiest way is to simply display it in digital, but that's not what you want...

On your front Panel, place a Gauge, right click it and "Add Needle".

Change the scale to 12 units. Change their relative positions. Then you have to "feed" the information into a cluster for both needles. The info inlcudes the values of each needle relative to a max value of 12. Do the calculation based on actual time using the "Time & Dialog" vi that are available from the Functions Palette.

Sounds like a fun project... 🐵

-enjoy -

JLV
Message 2 of 6
(5,298 Views)
Thanks JoeLabView,
I did place the gauge up. And found problems giving the right minute value with the hour value. I have tried one with two gauges inside themselves. The outer with hours and the inner with minutes and seconds. I dont look to hot......but it does work. I finshed this program for a customer.....and they wanted this anolog clock!! Thanks for your info

ggdixon
0 Kudos
Message 3 of 6
(5,298 Views)
Hello

I found old vis about analog clock. They were made by Jan Diedens ( see XYclock.vi for credits)
Hope they help

Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 4 of 6
(5,298 Views)
> I did place the gauge up. And found problems giving the right minute
> value with the hour value. I have tried one with two gauges inside
> themselves. The outer with hours and the inner with minutes and
> seconds. I dont look to hot......but it does work. I finshed this
> program for a customer.....and they wanted this anolog clock!! Thanks
> for your info
>

It is possible to change the appearance of the thumbs by swapping out
with other line decorations in LV and making it look somewhat nicer.
But years ago, LTR had a competition for making a clock. Some people
stacked knobs and gauges, some put on multiple thumbs, and some just did
the trig and put it in the picture control. You might be able to find
some of the solutions o
n the LTR web site.

Greg McKaskle
0 Kudos
Message 5 of 6
(5,298 Views)
Hey, I just did this recently. Except my "analog clock" runs on SIMULATED time... that is, I feed it a number (from 0 to 1440) and it returns the time of day display.

0 = Midnight
60 = 1 AM
You get the idea

Mine is not very sophisticated, but you will get an idea or two by looking at it.

I hope it helps you.
Drop me an email if you want and ask questions...
tomj@flash.net
Adios,
-Tom
Download All
0 Kudos
Message 6 of 6
(5,298 Views)