LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing he color of the front panel control programatically

Hi,

        I want to change the colour of the control(Numeric control) on the front panel programatically.Like, if the value from the numeric control doesn't set on the specified instrument then the colour of the numeric should turn into "red" otherwise "green".How can I go about it?

Regards
RobinHood
0 Kudos
Message 1 of 15
(3,735 Views)

Hi vipull,

you can use a property node to do it. See the attached example.

 

Mike

Message Edited by MikeS81 on 07-23-2009 07:37 AM
Message 2 of 15
(3,731 Views)

Thanks Mike

Regards
RobinHood
0 Kudos
Message 3 of 15
(3,711 Views)

Hi,

    I want to  change the back ground color of the numeric control as per the conditions.like if the frequency range is between 2000 and 5000 it should be in green color, it it is in between 6000 and 10000 it should be in red color.I've attached my vi here. plz find it.

Regards
RobinHood
0 Kudos
Message 4 of 15
(3,703 Views)

here I hope this helps:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 15
(3,696 Views)
thanks Harold
Regards
RobinHood
0 Kudos
Message 6 of 15
(3,685 Views)

it will be more efficent this way:

 

no need for the value property node:)

Message Edited by Harold Timmis on 07-23-2009 07:20 AM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 7 of 15
(3,681 Views)

Harold posted ...

 

 

or....

 

use an "in-range" node to do the same work as the compares and And gate.

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 15
(3,665 Views)

Harold,

            I want to stop running the vi if red back ground comes.can i do that.

Regards
RobinHood
0 Kudos
Message 9 of 15
(3,650 Views)

Ben,

       where canI get this in-range node

 

Regards
RobinHood
0 Kudos
Message 10 of 15
(3,647 Views)