LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing cell color in a table based on input

Solved!
Go to solution

I have been trying and trying with no success. Robot Sad

I do store the values in a 2D array. The problem is that I have to display each value as I get it. I cannot wait to get an entire row/column. Using the active cell property in a property node there is no problem changing the color of each cell as I get the corresponding numeric value (refer to the code provided by Altenbach). The problem is that without the ability to specify an active cell and write a number in it I cannot do the same with the numeric values.

How can it be done?

0 Kudos
Message 11 of 16
(2,791 Views)

Why don't you show us a simplified version of your code?

0 Kudos
Message 12 of 16
(2,786 Views)

Here is the simplest version of the code.

Thank you in advance for your input.

0 Kudos
Message 13 of 16
(2,771 Views)

You need to use "replace array subset", not "insert into array". See attached modification.

 

(Of course if you only want to fill the 2D array once, even the outer loop should be a FOR loop.)

 

 

Message 14 of 16
(2,766 Views)

If you keep the table value in a shift register, you just need to use the Replace Array Subset to update it.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 15 of 16
(2,763 Views)

Altenbach,

It is amazing how simple, easy and elegant your solution is.

Thank you very much!!!

0 Kudos
Message 16 of 16
(2,740 Views)