LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to manipulate the string list of a ring implemented in a cluster

The goal ist to create a routine or methode, that changes the ´string list in a cluster'. There would be multiple clusters to control a Multipexer with 80 Channels, so I dont want to generate 80 x 8 references to each Ring. Is there a way to do it?
0 Kudos
Message 1 of 6
(3,008 Views)
If you have 80 separate clusters and want to change the strings of a ring control in each of them without using reference constants get the references programatically...

In the attached example I have three clusters. If you change the strings array and run the VI you'll see that the options ring in all clusters are changed. In this example I identify all the clusters by searching for clusters that has a name containing cluster, that's just an example...you could have an array with the names of the clusters you want to control...or some other way of identifying them.
Message 2 of 6
(3,008 Views)
Thank's for answering so rapidly, but I'got an older Version 6.0.2 and so I could not open your example. could you save it for my vesion please?
0 Kudos
Message 3 of 6
(3,008 Views)
Thanks a lot!!! You pushed me miles ahead, in understanding LabView! Nice Weekend!
0 Kudos
Message 5 of 6
(3,008 Views)
Nice to hear:-)

Forgot to close the VI reference at the end of the code by the way, if you use a similar technique remember to close *all* opened references, otherwise you can easily get a memory leak in your application. It's not always easy to know when clsoing will be necessary or whether it will be a NULL operation...especially since it has been changed between different LabVIEW versions, but it's a good idea to do the close just as a rule of thumb.

Mads
0 Kudos
Message 6 of 6
(3,008 Views)