LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can i put an analogue clock face showing current time on my front panel? using 7.1

Hi all!

using 7.1 i want a clock face showing the current timeon my FP.

is this possible? I can only get a digital style display at the moment using the get time/date in seconds vi

Thanks.

 

Johnny

0 Kudos
Message 1 of 17
(4,393 Views)

A few people have already created clock face controls:

 

Analogue clock in NI Community

 

I'm sure there must be more if you search the forums...

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 2 of 17
(4,389 Views)

I have searched but i think i must be using the wrong keywords as im not really getting anything back.

Thanks for that  but im running 7.1 and i cant get it to open! 😞

0 Kudos
Message 3 of 17
(4,380 Views)

I couldn't conver the vi to 7.1 I'm afraid, but as it turns out, the block diagram code for this was horrendous so you're probably better off without it!

 

To create a custom clock face, simply use a dial gauge with two needles (or three if you want seconds). Set the scale from 0 to 12, and pass the current time in hours, minutes (multiplied by 60/12) and seconds (again, mulitplied by 60/12). This should give you something similar to an analogue style clock face. You'll need to play with the settings a little, making sure the start and end of the scale coincide at the top for example.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 17
(4,376 Views)

link one  (see message 4)

 

and try this search

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 5 of 17
(4,372 Views)

Hi, I have created two versions of a clock but i can't polish it off!

Can i use property nodes to change either the size of the needles on the 3needle gauge or hide the resessions and text on the 3 gauges stacked together?

Thanks in advance for your help!

 

Johnny

Message 6 of 17
(4,284 Views)

If you right-click you indicator and select Advanced> Customise, you will be presented with the control customisation panel. From within here you can play around with the dimensions of the geometries, such as the needle lengths etc. You'll need to select the wrench icon to switch to from edit to custimise mode.

I think your stacked control will be best, as this will allow you to choose independent needle lengths.

 

I played with the stacked one a little bit, it was possible to remove the decals so it's looks a little nicer...

 

clock2.jpg

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 7 of 17
(4,255 Views)

Thanks Thoric, I played with it a little and used a dial for seconds so now it looks like this.

 

 

0 Kudos
Message 8 of 17
(4,246 Views)

Very nice! Smiley Happy

 

If you're feeling generous, you could upload the new custom clock to the thread for others to use when they, like you, need an analogue clock face in their vi  Smiley Wink

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 9 of 17
(4,243 Views)

Yeah thanks for your help my vi is attached but it still needs a little work i think! Smiley Happy

Its maybe a good starting place for anyone who wants it though!

 

Johnny

0 Kudos
Message 10 of 17
(4,234 Views)