LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color for each item ring

Hello,
 
Is it possible to assign a different color for each item in a ring control ? See what I start in attached file.
 
Thanks
0 Kudos
Message 1 of 7
(2,201 Views)

Doyon,

Depending on what is acceptable you could use a Text & Picture ring to assign each item a color -- this would not appear on the text itself, however.  You could also make your ring come out to a case structure that contained a property node and correct properties for each case (i.e. case Yellow sets the background property yellow, etc.).  See the example I added to yours.

Message Edited by NI David on 06-28-2007 11:27 AM

David C
Applications Engineering
0 Kudos
Message 2 of 7
(2,194 Views)
I would suggest using a Text&Pict ring instead of a typical ring.  You can then make the picture the color you want and the text you want.  To make it look like what you want customize the control to make the background of the text transparent and then overlay it on top of the picture.
0 Kudos
Message 3 of 7
(2,189 Views)

Hi,

I have the version 8.0 can you save your Vi for my version.

Thanks

Message 4 of 7
(2,182 Views)
Attached is the LV 8.0 version.  I also added a control as described by Evan because I hadn't thought of it originally, but it is probably the best option -- it places text on color and doesn't require a loop to update.
David C
Applications Engineering
Download All
0 Kudos
Message 5 of 7
(2,173 Views)
Howdy,

If you setup an array of different colors for your Ring, you can change the colors on the fly. This does require that your program either uses a loop or an event structure, but that is pretty standard practice anyway.

B-)
0 Kudos
Message 6 of 7
(2,167 Views)
I can't look at the attached examples, but you can have a look at the example I did way back in this thread.

___________________
Try to take over the world!
0 Kudos
Message 7 of 7
(2,134 Views)