07-05-2017 09:57 AM
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?
07-05-2017 10:19 AM
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.
07-05-2017 10:31 AM
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!
07-05-2017 10:45 AM
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. 🙂