11-02-2009 06:49 PM - edited 11-02-2009 06:50 PM
Use the property node Array Element. You can cast that to a more specific type of control if needed.
11-02-2009 08:40 PM
11-03-2009 08:00 AM
11-03-2009 08:11 AM
The only way that I have ever read about to get at elements in an array is demonstrated in the Nugget I linked above. Asie from that example, I know of no other way to get at indiviual elements inside an array.
Ben
11-03-2009 08:14 AM
In the "Get All Control ReferencesV4.vi" you have:
Jean-Marc
11-03-2009 08:23 AM
11-03-2009 08:25 AM
11-03-2009 08:29 AM
Steve Block wrote:
I need the reference to the individual elements because I'm using an array of clusters and need to access nonvalue properties of individual controls inside of the clusters.
provided you are not trying to set the properties of different elements of the array to different settings, the code shown in that Nugget will help show you how to do it.
Yes that Nugget is not easy to understand but what what you have been asking is not easy and prior to that Nugget was not commonly concidered possible.
No I don't get paid my how many views of the Nugget i get.
Ben
11-03-2009 08:31 AM
In the "Get All Control ReferencesV4.vi" you have:
But this only returns the reference to the array. I need access to individual elements.
"provided you are not trying to set the properties of different elements of the array to different settings"
I am trying to.
11-03-2009 08:38 AM
"Stop right there!" ("Paradise by the Dashboard Lights", Meatloaf)
Elements of an array can differ ONLY in their value. The properties of all elements in an array MUST be the same.
if you really need to do that, use a cluster where you can have different properties.
Ben