LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the "Show Selection" feature in an array.

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,142 Views)
Solution
Accepted by Nate_Kilmer

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)

0 Kudos
Message 2 of 4
(2,134 Views)
Solution
Accepted by Nate_Kilmer

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).

 

altenbach_0-1601417215844.png

 

 

As a real-world example, I use it to highlight parameter correlations in shades of red on one of my ancient programs.

0 Kudos
Message 3 of 4
(2,116 Views)

I'll give these a try, thank you!

0 Kudos
Message 4 of 4
(2,097 Views)