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: 

listbox

Solved!
Go to solution

I need to constantly update a listbox during runtime. I searched the forums, but I couldn't find the example that I needed.

My list box needs to have multiple rows and columns. For Example can a list box have all of the below. If so can someone give me an example of how I would do this please?

 

Peter | (some symbol) | images | LED (maybe a blinking led) | hello (Font color change)

Luke  |  <, >, #, or @  | image   | LED (maybe a blinking led) | hello (Font color change)

0 Kudos
Message 1 of 7
(2,641 Views)

Hi E,

 

a listbox can display text (even colored) and some additional symbols in the first column. You cannot include pictures or other indicators like LEDs.

 

So those "some symbol", "images" and "blinking LED" will be very tricky…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,636 Views)
GerdW Thanks for getting back to me so quick. Thanks for the info.
0 Kudos
Message 3 of 7
(2,634 Views)

Hi E,

 

you might try to use an array of clusters instead, one cluster per row…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(2,631 Views)

ok. Do you have an example of this?

0 Kudos
Message 5 of 7
(2,628 Views)
Solution
Accepted by *E*

Hi E,

 

create a cluster of [string for name, string for symbol, picture indicator, boolean LED, string for hello] to hold those values you have mentioned in your first post. Then create an array of those clusters.

 

You need some programming to convert your data into that data structure, but that shouldn't be the hard part… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(2,623 Views)

Great thanks for the help!

0 Kudos
Message 7 of 7
(2,619 Views)