LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box 2 string mapping?

Hello!
 
I am wondering if it possible to map two different strings to one list in a combo box.
 
I want the user to be able to select an option from one list on the front panel. In the block diagram, I need this selection to map to two different values: one representing area and another representing weight. Unfortunately, the values do not have a functional dependence, and must be set individually (I cannot perfom a global set of mathematical operations on one set of values to obtain the other).
 
If the combo box cannot map two different values to one selection on the front panel, how would you recommend I proceed?
 
Thanks in advance for taking the time to help me!
0 Kudos
Message 1 of 3
(2,265 Views)

You can set the values of the combox box to 0 through whatever and use the value to index two separate arrays. Or simply use an enum, text ring, or menu ring and skip the string to numeric conversion.

Message Edited by Dennis Knutson on 04-03-2007 09:35 AM

0 Kudos
Message 2 of 3
(2,256 Views)
That did it. Thanks for the elegant solution.
0 Kudos
Message 3 of 3
(2,239 Views)