05-14-2009 07:44 AM
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
05-14-2009 07:51 AM
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...
05-14-2009 07:59 AM
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! 😞
05-14-2009 08:07 AM
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.
05-14-2009 08:11 AM
05-27-2009 05:51 AM
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
05-28-2009 04:00 AM
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...
05-28-2009 04:46 AM
Thanks Thoric, I played with it a little and used a dial for seconds so now it looks like this.
05-28-2009 04:52 AM
05-28-2009 05:22 AM
Yeah thanks for your help my vi is attached but it still needs a little work i think!
Its maybe a good starting place for anyone who wants it though!
Johnny