LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table font color

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.

0 Kudos
Message 1 of 7
(4,895 Views)

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

Message 2 of 7
(4,889 Views)

Hi Manojba,

try the attached example.

 

Hope it helps.

Mike

Message 3 of 7
(4,887 Views)
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.
Download All
0 Kudos
Message 4 of 7
(4,840 Views)

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

Message 5 of 7
(4,826 Views)

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.

0 Kudos
Message 6 of 7
(4,817 Views)

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

Message 7 of 7
(4,813 Views)