LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display growing array of clusters in multicolumn listbox?

Hello,

I am writing a labview 7.1 program to allow the operator to add and configure test equipments programmatically based on the kind of and number of equipments needed.  In order for the user to avoid selecting a VISA Resource Name that is already selected, I would like to be able to add and display each configured array element, which is a five element cluster (Name of the Test Equipment, Data Header String, VISA Resource Name, Function Selected and a Boolean) to a multicolumn listbox.  How do I accomplish that? 

 

0 Kudos
Message 1 of 3
(3,071 Views)
Valen Li,
Truth be told, the multicolumn listbox is a little tricky to use. You'll have to use the ItemNames property to set the values inside of the listbox itself. The input to this property node is simply a 2D array of strings, which will fit your application nicely.
 
The output from the listbox control is the current row selected by the user. A little tricky, but useable. Post to let us know if you have other questions.
 
 
Chris C
0 Kudos
Message 2 of 3
(3,060 Views)

See this thread starting at about reply #24.

http://forums.ni.com/ni/board/message?board.id=170&message.id=127096

It shows you how to make an array of clusters look and act like a "mixed data type multi-collumn list box".

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(3,054 Views)