From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to highlight a row of elements in an 2D array using property node?

Solved!
Go to solution

Hi Application Engineers,

 

I am wondering if there is a way to highlight a row of elements in a 2D array using array's property node?

 

It can be easily done in an excel sheet, I would like to programmatically do it in LabVIEW.

 

edmonton_0-1642380992382.png

 

 A Vi with data is attached.

 

Regards,

Gu

 

 

0 Kudos
Message 1 of 5
(1,362 Views)
Solution
Accepted by edmonton

No, all elements of an array must have the same properties. You can use tables/listboxes to do it though.

 

Also here are a few workarounds: https://forums.ni.com/t5/LabVIEW/How-to-change-an-array-element-color/td-p/1945893

Message 2 of 5
(1,347 Views)

Thank you.

 

I will try listbox.

Gu

0 Kudos
Message 3 of 5
(1,318 Views)
Solution
Accepted by edmonton

Use a TABLE instead of an Array on your font panel 

 

Then use the Selection Color, Size, and Start properties to highlight the cells

 

sel2Capture.PNG

selCapture.PNG

========================
=== Engineer Ambiguously ===
========================
Message 4 of 5
(1,262 Views)

Yes, table is a better option.

thanks,

Gu

0 Kudos
Message 5 of 5
(1,236 Views)