09-11-2008 05:36 AM
I am displaying thermocouple values in table the table has four columns channel,Description,Limits and values.These are real time values i want to change the color of these values according to the limits that is if it lies in danger zone they should be displayed in red color if in warning zone in blue color or for normal range in black not all the values only those which cross the limit.using switch i can display either of the color but not all color so how do i do it?
eg; I have limit of +70/-40 if value is in range 67-70 it should be Red
if value is in range 60-70 it should be Blue
if value is < 60 it should be Black
similarly for negative range.
09-11-2008 06:01 AM
Use the Table's property nodes: 'Active cell' and 'CellFontColor' property nodes to set the color a particular cell
Use comparison functions to determine the font color based on the measured temperatue value
09-11-2008 06:11 AM
Hi Manojba,
try the attached example.
Hope it helps.
Mike
09-15-2008 12:45 AM
09-15-2008 01:57 AM
Manojba wrote:
I tried your method but its not working properly even the values which are not in the limit are also changing the color. I think you will get better idea by seeing these pictures(it has both front panel as well as block diagram) that what exactly i want to do.Thanks a lot i hope you will reply soon.
Hi Manojba,
there can´t be a range which is not defined. You have to define all limits you need. It should be no problem to extend my exmaple to more limits.
Mike
09-15-2008 03:25 AM
I do have a range i have given the range in my first question itself but the problem here is synchronization before all the values are checked and displayed according to their limits if i get a new set of data then it do not work.To explain in simple word if i give delay of 1 minute for while loop it works perfectly but if delay is less than 1 min it will not work .you can verify it by your own code which you sent me just instead of taking only ten values run the loop for 200 values and check values in bottom of table you will see color changes for values which are not in range for that color.
09-15-2008 03:36 AM
Hi Manojba,
i think it´s only a display problem. You can put the table element inside a flat sequence structure to set the dataflow. Calculate the colors after writing the values into it.
Hope it helps.
Mike