08-26-2008 02:56 PM
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!
Solved! Go to Solution.
08-26-2008 03:14 PM - edited 08-26-2008 03:15 PM
You could do this better by using a picture control.
Here's the code and the VI (in 8.5):
Ton
08-26-2008 03:21 PM - edited 08-26-2008 03:21 PM
08-26-2008 03:32 PM
08-26-2008 03:32 PM
08-27-2008 06:34 AM
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
08-27-2008 06:55 AM