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: 

how to fill combo box strings faster

Hello,

 

in LabVIEW 2010, I load an array of strings to the "StringsAndValues[]" property node of a combo box. It can happen, that this array has 65000 elements. The property node loads very slow. Is there any trick to accelerate this?

 

regards

Mitulatbati

0 Kudos
Message 1 of 4
(2,346 Views)

I'm not sure what your application is but I've did some tests and found that you can populate text rings nearly 20x faster than combo boxes.

Message 2 of 4
(2,338 Views)

Why in the world would you have a combobox with 65000 elements? Smiley Surprised That is simply ludicrous. Don't you think you might want to reconsider your user interface?

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

Just ran into this. 30000-60000 isn't that weird. DUT IDs from a database for instance, that get autocompleted by the combobox.

 

Note that filling the strings of the combobox is NOT slow. It's filling the combobox with strings and values that is slow. .3 sec. for 3000, 27 sec. for 30000 items, this grows exponentially. 60000 takes 108 sec. When you stop the VI, the VI is 'reset', and that takes just as long.

 

The solution is to fill the combobox with just values. Then, when a string is selected, look that string up in the array of values.

 

Just don't select "edit items". It will update several times, and you'll be doing a lot of waiting. Closing with task manager and restarting is faster.

Message 4 of 4
(1,862 Views)