07-23-2009 12:12 AM
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?
07-23-2009 12:37 AM - edited 07-23-2009 12:37 AM
Hi vipull,
you can use a property node to do it. See the attached example.
Mike
07-23-2009 02:00 AM
07-23-2009 03:24 AM
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.
07-23-2009 03:50 AM
here I hope this helps:
07-23-2009 05:51 AM
07-23-2009 06:19 AM - edited 07-23-2009 06:20 AM
it will be more efficent this way:
no need for the value property node:)
07-23-2009 07:47 AM
Harold posted ...
or....
use an "in-range" node to do the same work as the compares and And gate.
Ben
07-24-2009 01:01 AM
Harold,
I want to stop running the vi if red back ground comes.can i do that.
07-24-2009 01:06 AM
Ben,
where canI get this in-range node