LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox not more than 32 Symbols?

I have a Multicolumn Listbox. In the first row, I have a symbol (the diamond). Configuration of the Listbox is done via the frontpanel editor. Data is inserted programmatically, as well as the size, visibility and colors of the symbols are set programmatically. Basically, everything works fine. BUT when I insert more than 32 rows into the Listbox, there are no symbols on rows 32+.

 

I did not find any signs that the number of rows or number of symbols is set to 32 anywhere in the code or on the frontpanel editor.

 

What could be the reason for this strange behavior?

0 Kudos
Message 1 of 8
(3,092 Views)

Can you show us a simplified VI that demonstrates the problem?? Thanks!

0 Kudos
Message 2 of 8
(3,083 Views)

Hello mibeer,

 

I've manually entered more than 32 symbols into a Multicolumn Listbox and I could see them. You have to initialize the list fields, though. That might be the reason why you don't see the symbols.

Do you use a loop to enter the symbols? Do you initialize the Listbox entries in the same loop or are the loop iterations different?

 

With regards

 

AndGar

Andreas Gareis
Senior Applications Engineer, NI
Certified LabVIEW Developer & TestStand Architect
0 Kudos
Message 3 of 8
(3,039 Views)

Finally, I solved the problem by just setting a symbol for each populated cell by using the ItemSyms property in a property node.

 

Thanks for the answers anyway.

0 Kudos
Message 4 of 8
(3,015 Views)

@mibeer wrote:

Finally, I solved the problem by just setting a symbol for each populated cell by using the ItemSyms property in a property node.


So, what exactly did you do before?

0 Kudos
Message 5 of 8
(3,012 Views)

Before, the symbol was choosen non-programmatically in the frontpanel editor. The elements where then added programmatically by applying a string array to the property node ItemNames. Nothing more. And I definitely not use the number 32 to initialize anything. So this must come from LabVIEW internally.

 

So the strang behaviour could probably be reproduced by just adding programmatically a random number of entries to a multicolumn listbox upon click of a button.

0 Kudos
Message 6 of 8
(3,001 Views)

Dear mibeer,

 

how does your string array look like? It would be nice if you could post your VI.

 

With regards


AndGar

Andreas Gareis
Senior Applications Engineer, NI
Certified LabVIEW Developer & TestStand Architect
0 Kudos
Message 7 of 8
(2,996 Views)

mibeer wrote:

So the strang behaviour could probably be reproduced by just adding programmatically a random number of entries to a multicolumn listbox upon click of a button.


Well, guessing does not really belong here.

 

If you suspect a LabVIEW bug, wire up a small example that demonstrates the problem and we can immediately eliminate the "probably" and get a definite answer instead. We like facts better! 😄

 

Please do so! Thanks.

0 Kudos
Message 8 of 8
(2,965 Views)