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: 

Fill ComboBox with Array data

Good morning community, I tell you about my problem, I find myself programming a menu where when selecting a data from my

ComboBox -Family

My second ComboBox starts, where different data will appear depending on what I have selected in my first ComboBox, which is going well so far.

The detail:

The Array as you can see I have 2 data and only one of them (The first one) appears in my second ComboBox.

LabViewExample2.png

 

LabviewExample.png

 

0 Kudos
Message 1 of 3
(2,278 Views)

It's not clear what you want.

 

  1. Why do you have a greedy loop?
  2. Why do you use 2D arrays of string/value cluster pairs if each 2D array only contains a single element?
  3. It makes no sense to index out two elements from an array with only one element.
  4. so you are writing the String/value property twice in a row, the second time with the default element, which is empty strings. You'll never see anything useful!
  5. Your code really makes no sense at all, so I don't quite understand what you want.
0 Kudos
Message 2 of 3
(2,245 Views)

I think you're after something like this:

ComboBox chain.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(2,181 Views)