LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Launching n number of combo boxes based on n selected at run time

Hi All,

 

I am looking for something interactive with the system. 

 

This is my problem, I choose a number "n", say for example 5. When I choose 5 I need to have 5 combo boxes open/launched with already provided items on it. And n is a variable, so chances are there to be changed every single time I run my program. Is this possible with LabVIEW programming?

 

Or I can also try with some other option. It should basically work like a drag and drop of some 6 parameters, so I thought it would be better to have a combo box and proceed. If anyone thinks there is a better solution than this way, kindly suggest!

 

 

Thanks in advance!

0 Kudos
Message 1 of 5
(3,078 Views)

Hi Medico,

 

the general answer is: when you want to have a variable number of the same element you should use an array of that element!

 

Do those comboboxes always display the same set of choices?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,072 Views)

Yes, they have the same set of choices. 

 

But may you please be a little elaborate, am not able to get your point!! A novice here....

 

 

Thanks

0 Kudos
Message 3 of 5
(3,058 Views)

Hi Medico,

 

put the combobox in a array and show as many elements as you need…

 

When you don't know how to work with arrays I recommend to take the free online courses for LabVIEW beginners!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,049 Views)

Yes, thanks for your recommendation...I wud look at it!

0 Kudos
Message 5 of 5
(3,029 Views)