LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get a ref to a ring in a cluster that are in a array of clusters?

Solved!
Go to solution

I have a cluster (typdef'd) with controls. Two of the controls is rings. I place that cluster in a array. I then fill the array of clusters up with data. Can I get the ref to the rings in each cluster? I must load them, individually, with strings[].

0 Kudos
Message 1 of 8
(3,762 Views)

Hi Haddock01,

i think the best way to do this is to use a loop and the bundle/unbundle by name functions.

 

Mike

0 Kudos
Message 2 of 8
(3,759 Views)

Dear Mike,

I'm lost here but if I unbundle and bundle the clusters I can only reach the rings value (i.e index). Not the strings[]. I can't load the individual rings with an array of strings. I must say that I havn't work so much with references....so I have much to learn.

0 Kudos
Message 3 of 8
(3,752 Views)

Hi Haddock01,

can you upload an example of your structure with the values you want in it?

 

Mike

0 Kudos
Message 4 of 8
(3,749 Views)
If you right click on the individual Ring in the structure on youe front pannel and select 'Create Reference' you can use this in your diagram to change the strings. You can change the content of each ring control in the cluster.
0 Kudos
Message 5 of 8
(3,743 Views)

Mike,

I have here a example....please look at it. It's an array that the user can look into each post (that is loaded from a XML-file).

 I cant get the ref. to the individually ring beacuse I don't know where in the array I am.  Smiley Indifferent

Download All
0 Kudos
Message 6 of 8
(3,734 Views)

Hi Haddock01,

use the solution IanW mentioned. All your rings can have different values in the array, but not different strings for selection.

 

Mike

0 Kudos
Message 7 of 8
(3,727 Views)
Solution
Accepted by topic author Haddock01

Ok. Thanks everyone. This means that I must abandon the structure with an array. I must have individual Clusters, let say 4-5 clusters, that shows post n to (n+4). Only then I can have the rings loaded separate.

I makes the programming little more, I think, heavy but I get it as I want.

 

Thanks again.

0 Kudos
Message 8 of 8
(3,715 Views)