LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox "Value" with VI Server.

I am trying to get the contents of a multicolumn listbox on a remote application through VI Server.  It is clear the I do not understand multicolumn listboxes.  Why are they represented as a Numeric (I32) data type?  What is the property "Value"?  If I convert the "data" from a multicolumn listbox into a variant I get an I32 out?!  Wheres the cell contents?  Even if I hang an indicator off of a multicolumn listbox control, the indicator is not populated!  I'm sure that I could make a multicolumn listbox to spreadsheet vi (there probably already is one) but VI Server will not do that for me when I ask for the value of the control property in the Invoke node and I think that's all I have access to with VI server.

Message 1 of 3
(4,054 Views)

toddho,

 

The 'cell contents' of a Multicolumn list box is stored in the ItemNames property.  ItemNames contains all of the information stored in the table in a 2D array.  When you click on a row the I32 output is the index of that row and can be used with the Index Array function to select a single row of data from your table.  See the attached example and let us know if you have more questions.

 

fp.jpg

 

 

 

bd.jpg

 

Regards,

 

Sam K

Applications Engineer

National Instruments

www.ni.com/support

Download All
Message 2 of 3
(4,016 Views)

Thanks for the reply.

So how do I get at the ItemsNames property with VI Server?  I think that all I have is the string name of the indicator and its variant data.  I do not have an actual reference to the indicator to get at those properties.  Is there a way to get a an indicator reference from a string of the indicator name and a reference to the owing VI?

0 Kudos
Message 3 of 3
(4,009 Views)