10-08-2010 06:47 AM
Hiya,
I'm new to invoke nodes as of today and I need to reinit to default a large group of objects at the end of my VI. I don't want to set different invoke nodes for each one. Can I apply a refnum to a group of objects and how would I do so?
Cheers
Solved! Go to Solution.
10-08-2010 07:08 AM
I don't think there is any way to do exactly what you asked (group). However you can create an array of references and put the reinit inside a for loop.
Lynn
10-08-2010 07:44 AM
In addition to Lynn's suggestion, there are some programatical ways to obtain an array of references, such as Controls[] for the VI FrontPanel or a cluster.
Felix
10-08-2010 07:54 AM - edited 10-08-2010 08:00 AM
Indeed, I was having troubles making an array of references. I suppose I can't index a cluster through a loop either. Other than that, i don't think I understand you fully.
Okay, Success, thankyou.
10-08-2010 08:10 AM
You appear to have figured this out, but I will mention it in case others look at this thread. You can get the references of the controls in a cluster. After you get the reference to the cluster, you use a property node on the cluster reference to get references to the controls within the cluster. This can be repeated to any depth of embedded clusters. Search the Forum for examples of doing this.
Lynn