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!
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.
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.
> 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.