LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

customized clock control

Solved!
Go to solution

Hi all, I'm trying to create a customised control that looks like a timer that counts up - kind of. Basically, I want a circular face, like a clock face, that starts blank, and sweeps with a single colour in a clockwise direction until the whole 360deg of circle is full. So, I started playing around with the dial control - removed the scale, and needle, and using the ramp feature I play around with property nodes to sweep the ramp from a zero rotational width to a full 360 degrees. This gives exactly what I want..... nearly.

 

Please take a look at the attached example (in LV V8.0, 8.2 & 8.5.1). There is a graphical problem. As the colour sweeps around, it's outer radius seems to drift from true. If left running for long enough, this outer radius can reduce to nearly half what it is to start with! There's no control over this radius, it's set by mouse interaction with the control at edit time, so there's no way to restore its value during run-time!

 

If anyone has any ideas, please help me! This control isn't as neat as I'd like anyway, so if anyone knows of a better way that would be great!

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Download All
Message 1 of 7
(4,265 Views)

You could do this better by using a picture control.

 

Here's the code and the VI (in 8.5):

 

Ton

Message Edited by TonP on 08-26-2008 10:15 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Download All
Message 2 of 7
(4,260 Views)
Solution
Accepted by topic author Thoric

Here's a rough draft....

 

Message Edited by altenbach on 08-26-2008 01:21 PM
Download All
Message 3 of 7
(4,251 Views)

Awesome guys, thanks very much!

I'd rate your answers, but apparently I don't have enough posts to do that yet Smiley Sad

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 4 of 7
(4,239 Views)

Awesome guys, thanks very much!

I'd rate your answers, but apparently I don't have enough posts to do that yet Smiley Sad
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 5 of 7
(4,238 Views)

Just check that all your values show up right.  There's some odd rounding issue that happens

 

More info: http://forums.ni.com/ni/board/message?board.id=170&message.id=339694 

Message 6 of 7
(4,184 Views)
Thanks for this Britoa, I appreciate the warning Smiley Happy
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 7 of 7
(4,173 Views)