LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color on a control

Hello Everybody,
 
I'm new to this and my question is like this:
I want to change the background color on a control between two colors depending
if a value is greater then a set value. In this case the backround should change from white to red
on a RPM meter when the RPM is greater then the RPM limit.
I found out how to set the color using the property for the control but I can't figure out how to change
between the two colors using a comperisson function.
Thanks in advance!
 
Regards
Roger
 
0 Kudos
Message 1 of 6
(3,136 Views)
Please see the attached vi, I believe that it will accomplish what you are after.  Please let me know if either it does not work or you have any questions.

Cheers!
0 Kudos
Message 2 of 6
(3,129 Views)

Also have a look at this thread: http://forums.ni.com/ni/board/message?board.id=170&message.id=308308

There may be some interesting suggestions.

0 Kudos
Message 3 of 6
(3,123 Views)

Thanks for your help!

Unfurtunally I couldn't open the example because I'm running version 8.0. I'm not

sure if it's possible to convert it to an older version or not.

 

//Roger

 

0 Kudos
Message 4 of 6
(3,101 Views)
Here's a screenshot of the code, you should be able to implement it.

Ton


Message Edited by TonP on 03-14-2008 11:31 AM
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!
0 Kudos
Message 5 of 6
(3,097 Views)

Thanks Ton!

I'll try this.

 

Roger

0 Kudos
Message 6 of 6
(3,083 Views)