09-16-2019 04:51 AM
Hello,
I have LIN traffic table in VI.
I need to change color of line(row) in case that condition is true LIN full frame.
check attachement.
Till now i succeed to change only first element.
Can somebody advise, how to do this??
Thank you.
Milan
09-16-2019 06:48 AM
09-16-2019 07:58 AM
I set up like in attachment...
But now is everything red, even when condition is not fullfilled.
How to change this...
Best regards.
09-16-2019 08:05 AM
When I set up row 0 column -2, then this work, but my table doesn't remember color.
As soon the value goes on second row, it becoms red again...
Best regards.
09-16-2019 08:17 AM
Your False case is setting the active cell to -2, -2 which means the entire table.
09-16-2019 08:18 AM
09-17-2019 12:22 AM
Hello,
yes overwriting is problem.
Unfortunatelly I am not allowed to place whole VI, and this part of program will not work without rest of the program.
But i placed vi with this property...
Problem: On picture 6 I get first row is green, but when it moves down, it becomes red, picture 7.
Best regards.
09-17-2019 12:51 AM
09-17-2019 12:53 AM
09-17-2019 10:13 AM
If you add or delete rows to the table you need to re-assign the colors for the cells. Color assignments are locked to the exact cell, not the row/column itself. So if you add a row at the top, all of the color assignments will be off by one.
I have attached some code that I wrote for working with tables that contain colors. I think I grabbed everything. Let me know if I missed any VIs.