LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dinamically populate combobox inside a cluster inserted in array structure

Hi everyone is my 3rd question on this topic so i hope to find a solution.

I have to create a Table made with an array that contains clusters with two object (See picture below). I made the table structure but i can't properly popolate the combobox using the property node or other way around, why an easy thing has to be so difficult when you use an array?! 

At this point give my the solution, i know isn't the best way to learn but i'm tired and out of idea, i tryed everything i know without sucess , i'm still learning....

My question is how i can popolate dinamically the combobox without changing all the combobox?? 

 

Thank you for your time and knowledge and remember: Array properties appply to all element inside the array  😡😤

 

Using Labview2021 

0 Kudos
Message 1 of 6
(222 Views)
0 Kudos
Message 2 of 6
(221 Views)

You have to change the combobox Strings[]-property each time it activates.

Yamaeda_0-1741176137798.png

 

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(185 Views)

Hi Again Yamaeda, 

i already know that you have and how to use combobox string() property to modify the element... my problem is how can i access the combobox inside a cluster inserted in a array structure? 

0 Kudos
Message 4 of 6
(165 Views)

Hi Marione,

 


@IlMarione wrote:

my problem is how can i access the combobox inside a cluster inserted in a array structure?

Several options:

  • Get a reference of the array frontpanel element, get the (generic) reference of its elements, type-specify that reference to your (more strict) cluster. get the reference of the cluster elements, pick the reference of the combobox element…
  • Right-click the combobox in the frontpanel and create a reference…

Keep in mind: in an array all elements share the same properties!

Best regards,
GerdW


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

 


@IlMarione wrote:

Hi Again Yamaeda, 

i already know that you have and how to use combobox string() property to modify the element... my problem is how can i access the combobox inside a cluster inserted in a array structure? 


As i showed in the picture. A control reference can point to an element inside a cluster.

Yamaeda_1-1741185914478.png

 

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(150 Views)