LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit a array of Cluster element property

Solved!
Go to solution

 

I have a array of cluster .In which i have 1 Ring control and a string control.I want to name different string element property of ring for every index of array. For Example In the first Array the ring display choice is (a,b,c) and 2nd Array the ring display choice (b,d,e). Is this possible ? i am able to only give a common choice display.

 

With Regards

Sibin K Mathew



Email: sibin.is.here@gmail.com
Mobile No:+1215-406-6545
http://in.linkedin.com/pub/sibin-mathew/48/846/446
0 Kudos
Message 1 of 10
(4,411 Views)

Sorry, but every element of an array must have the same properties.  They can have different values, but everything else has to be exactly the same.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 10
(4,398 Views)

Do i have any other way to create a array of cluster with diffrerent Ring display ?

With Regards

Sibin K Mathew



Email: sibin.is.here@gmail.com
Mobile No:+1215-406-6545
http://in.linkedin.com/pub/sibin-mathew/48/846/446
0 Kudos
Message 3 of 10
(4,394 Views)

Hi sibin,

 

again: in an array all elements share the same properties. So you CANNOT use an array when your rings should have different strings!

 

You can use a cluster of clusters - with a fixed number of clusters in your main cluster…

Best regards,
GerdW


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

It's all a question of how many items you put into your cluster 😉

Add label strings or an array of string and your done:)

In your control, you can disable the strings

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 10
(4,373 Views)

It's more coding, but you could use something like this, and then change the items in the ring control each time you show that control at a different location in the table.

0 Kudos
Message 6 of 10
(4,350 Views)

Its again , you won't be able to change for the particular string property of ring in an array.

With Regards

Sibin K Mathew



Email: sibin.is.here@gmail.com
Mobile No:+1215-406-6545
http://in.linkedin.com/pub/sibin-mathew/48/846/446
0 Kudos
Message 7 of 10
(4,321 Views)

My application doesn't know how many element will be there untill the data is inserted when application starts.so I need to change the ring display as per the input to the string control . It can have min of 20 array elements.

With Regards

Sibin K Mathew



Email: sibin.is.here@gmail.com
Mobile No:+1215-406-6545
http://in.linkedin.com/pub/sibin-mathew/48/846/446
0 Kudos
Message 8 of 10
(4,319 Views)
Solution
Accepted by topic author Sibin

Sure this can be done with some voodoo magic.  Oh and using a Combo Box instead of a ring.  I think the same is possible with a ring but I wasn't sure if values would get changed where I knew a Combo Box it wouldn't.

 

Attatched is an example where there is an array of a cluster, with a combo box and a string in the cluster.  Set the string to something and the Combo Box will be populated with names that start with the string in String.  This will create the illusion of different drop downs for each element in the array, but really it is changing the drop down in each element as needed.

Message 9 of 10
(4,276 Views)

Thank you Hooovahh ,This solution is working for me.

With Regards

Sibin K Mathew



Email: sibin.is.here@gmail.com
Mobile No:+1215-406-6545
http://in.linkedin.com/pub/sibin-mathew/48/846/446
0 Kudos
Message 10 of 10
(4,249 Views)