08-22-2008 02:00 PM
An "Unbundle By Name" or "Bundle By Name" node will respectively read or write typed values of cluster elements.
Is there an "Unbundle References By Name" node or VI to obtain a cluster of typed (not generic) references from a cluster?
08-22-2008 02:37 PM
08-22-2008 02:41 PM
Also the generic control type does include a type id which will let you cast your objects back into the original type, it would have been much nicer if the class ID was actually a reference type instead this would have avoided the casting step.
08-22-2008 02:54 PM
I have several front panel objects grouped in a cluster, and I want to set their properties at runtime.
I just thought since the typed values were available, typed references would also be available (without explicit typecasting).
08-22-2008 04:23 PM
Use the reference to the cluster's element, these are typed.
08-25-2008 07:35 AM
08-25-2008 08:23 AM
Hi Steven,
Try taking a look at this Nugget where I try to touch on every aspect of control ref's. Hopefully you'll find something useful in that pile.
Ben
08-25-2008 08:46 AM
Make a reference to the cluster, click on the cluster reference and select link to. Navigate the menu to the cluster then a submenu with the cluster elements will popup, select the wlwment name you need a reference to. You will now have a reference (typed not a generic control ref) to the element of the cluster.
08-25-2008 08:54 AM
Attached is a very quick toy example of using a cluster's element references.
08-25-2008 10:46 AM
Unfortunately, using a cluster's element reference does not help in my case, as I have a cluster of (non-strict) type-def'd clusters.
I finally decided to put each control's initialization routine inside a Case Structure with Label.Text wired to the selector terminal.