10-19-2022 05:06 AM
Hello,
is there possibility to change color of one element in table by using reference.
Another words, if some element value in table is out of limits, then color of element should be changed, and other elements doesn't change color.
Reference should be used, because this will be subVI.
I manage to change color just for first element, but don't know how to change for example on 2., 3., element, end so on...
I know this part of code is not good, but this is just for try...
If someone can advise how to solve this.
Thanks
10-19-2022 05:16 AM
Use the Active cell property to select the desired cell, then set the color.
10-19-2022 03:50 PM - edited 10-19-2022 03:53 PM
Here is an old example that changes the text color in a table based on value. (posted here)
(Note that property nodes execute top to bottom, so the order matters. If you plan to change many cells, I recommend to defer panel updates)
I don't understand at all why you read the table value via a value property node instead of using the terminal? seems convoluted!
10-19-2022 04:02 PM
10-19-2022 04:07 PM
As an applied example, here's how I display a correlation matrix using a color ramp:
Values close to 1 or -1 are getting dangerous. 😄