LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Property Nodes

HELP! I am new to LV programming and have a problem. First of all I
only have the evaluation version of LV 6i. I have looked through the
online doumentation and the PDF manuals. What I am trying to do is
have the fill color of a thermometer change when a certain temp is
reached. This has got to be simple and I think property nodes are
involved. This can't be too hard!
0 Kudos
Message 1 of 5
(3,355 Views)
Hi,

What you need to do a is comparison using one of the comparison functions and compare the required temperature with the actual temperature read from a local variable of the temperature control. If the comparison is True then set the Fill Color attribute (property) with the required colour. Remember the value for the colour is RGB format ie FF0000 Hex for Red You might what to use a colour box constant or Color Box control to get the right value.

Hope is helps
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,355 Views)
Another alternative is to create a relationship between the current temperature and the color. Colors are made of the combination of Red, Green and Blue, each of them ranging from 0 to 255 (usually). If your temperature goes from 0 to 100 C, you can use the relationship 255/100.

Attached is an example.

Regards;
E. Vargas
www.vartortech.com
Message 3 of 5
(3,355 Views)
Oh well! I didn't notice the part when you said that the change in color is when certain temperature is reached.

Sorry, although the example might be helpful. Follow Ray Farmer approach.
www.vartortech.com
0 Kudos
Message 4 of 5
(3,355 Views)
> HELP! I am new to LV programming and have a problem. First of all I
> only have the evaluation version of LV 6i. I have looked through the
> online doumentation and the PDF manuals. What I am trying to do is
> have the fill color of a thermometer change when a certain temp is
> reached. This has got to be simple and I think property nodes are
> involved. This can't be too hard!

You are very close. Popup on the control and Create a Property node.
From the property node, select the Fill color property and make it
a write node. Now select or compute the color by comparing the
value to your cutoff. The easiest is probably to do the comparison
and wire it to the center input of a Select node from the comparison
palette. Wire the color constants or color numerics to
the outer
inputs.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,355 Views)