LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

invoke nodes for groups, should be simple!

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(2,530 Views)
Solution
Accepted by Curran919

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

Message 2 of 5
(2,522 Views)

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

0 Kudos
Message 3 of 5
(2,509 Views)

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.

0 Kudos
Message 4 of 5
(2,503 Views)

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

Message 5 of 5
(2,493 Views)