LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke Method: Reinitialize to default - Select programatically???

Currently I am resetting a cluster to defaults at the beginning of a test sequence. This is being done by the "Invoke Method: Initialize to defaults" as seen in the attached image. However There are multiple instances of this Typedef cluster that i want to reset. I would like to pragmatically determine the cluster to reset as the case structure is going to be converted to a sub vi and have multiple parallel instances running. The cluster being fed into the sub vi will determine which one gets rest. Is there a way to achieve this through the cluster signal only?

0 Kudos
Message 1 of 4
(3,674 Views)

Try selecting that invoke node and create a subVI out of it.  What happens next should give you a clue to what you need to do.  Actually, it might be the solution itself, come to think of it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(3,657 Views)

Just as you were typing that another solution popped into my mind. As the cluster is a typedef already i just used another instance (naturally in its default state) if it and write that to my front panel.

 

I will experiment with your solution as well.

 

Thanks!

0 Kudos
Message 3 of 4
(3,653 Views)

The spoiler is that, in creating the subVI, it will create a reference to the control that the implicit invoke node was created from and change the implicit node to an explicit one with a reference.  You can then wire a reference from whatever control it was that you wanted to reset to the input of that subVI.

 

Whether this is simpler than the solution you came up with is your call.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(3,643 Views)