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: 

Want to convert multicolumn menu to string

Hello,

I want to specify a set of characteristics for rope before I run a test. I want to have a pulldown menu with many types of rope.

I tried a multicolumn list, thinking I could put values in each column for a particular type of rope (like name, diameter, fiber). I used these names for the columns. Then I put values in each row based on these properties. I want the output to be a concatenated string so I can save in a file, but all I get is the number of the row I've selected instead of the string of stuff in the row.

Help?
Thanks!
Mike
0 Kudos
Message 1 of 3
(2,973 Views)
Mike,

Create a property node for your multicolumn listbox (right-click, Create >> Property Node). Choose the ItemNames property and you'll get a 2D table of strings that represent the values in the listbox. Slice out the selected row using Index Array and the current value of the listbox terminal, and you're good to go.

Rergards,
John Lum
National Instruments
Message 2 of 3
(2,973 Views)
Worked perfectly. I'd heard of property nodes but never used them. Wonderful tool!

Thanks for your help,
Mike
0 Kudos
Message 3 of 3
(2,973 Views)