09-29-2020 04:27 PM
I'm trying to highlight a row in a 2D array using the "Show Selection" feature, but for some reason the blue box is only appearing as a blue line on the left side of the row. I used the same procedure as the first reply in this thread: https://forums.ni.com/t5/LabVIEW/how-to-highlight-a-specific-element-of-an-array/td-p/116128
Anyone know why the "Show Selection" feature might bug out like this? I've attached my VI if anyone wants to have a look at it. My ultimate goal is to have the blue box around an entire row, and to have the box move to whatever row is currently active.
Solved! Go to Solution.
09-29-2020 04:47 PM - edited 09-29-2020 05:06 PM
I would recommend to use a table indicator instead to show your 2D array. This way you have full control over every cell in terms of background color, font color, etc. You can even show row and column headers if desired.
(your code has a missing subVI and missing datafile. No way for us to test)
09-29-2020 05:07 PM - edited 09-29-2020 05:26 PM
Here's a simple example that generates a random 2D array and highlights the largest and smallest element using two different colors:
You could easily modify to select entire rows or columns by specifying -2 for one index. Have a look at the help.
(note that I select -2,-2 to reset all to white).
As a real-world example, I use it to highlight parameter correlations in shades of red on one of my ancient programs.
09-29-2020 05:43 PM - edited 09-29-2020 05:44 PM
I'll give these a try, thank you!