01-27-2006 11:52 AM
01-27-2006 01:37 PM
Hi Oleg,
I don't quite understand your question. You can use the Controls[] property of the Panel or Cluster class to obtain references to controls on a panel or in a cluster. Is this what you need? If not, please attach a VI with a more detailed explanation as to what you are trying to accomplish.
Good luck,
-D
01-27-2006 02:10 PM
01-27-2006 02:20 PM
Hi Oleg,
Thanks for posting the VI screenshot, although it's still unclear to me what exactly you are trying to do. The "array of clusters" indicator on your front panel has a string and a boolean inside of it, so you can very easily create individual control references for those two indicators just by right-clicking them and choosing "Create > Reference"), or you can use the Controls[] property of your cluster to obtain references to the two controls inside it. There is no such thing as getting a reference to "every" string and "every" boolean in the array, since each array element does not have its own Control Reference...this is because all array elements must have identical property settings.
If this isn't what you're looking for, perhaps you're using the term "references" to mean something different than what it really means in LabVIEW.
-D
01-28-2006 06:06 AM
01-28-2006 10:54 AM
As Darren said, all the elements in an array have the same properties. The only different thing is the value of each element. Modifying a property of one element affects all of them. Unfortunately, there is no dynamic GUI device like this in LV. Adding elements to an array is not dynamically creating it, but simply resizing it, and that's the normal use of an array.
The easiest way to get a reference to the element (and there is only one reference), is to right click inside the cluster and to create a reference. Another option is to take a property node pointing to anything on the FP, right-click it and select Link To>>Array>>Cluster>>All Elements. Another option is to get a reference to the array and use the last property (Array Element).
01-30-2006 06:53 AM
01-30-2006 04:14 PM
01-31-2006 06:36 AM - edited 01-31-2006 06:36 AM
Message Edited by OlegUA on 01-31-2006 02:37 PM
Message Edited by OlegUA on 01-31-2006 02:40 PM
01-31-2006 01:04 PM