LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set control value method

How do I use the set control value method to send a cluster to a sub-vi? I have tried just sending the cluster as it is, but the invoke method gave me an error. I have thought about sending in the Control[] property of the cluster, and then in the subVI use "to more specific class". But my cluster is very big, and this would be a lot of coding. Can you think of an easier way to do this. Thanks a lot.
0 Kudos
Message 1 of 3
(2,668 Views)
The reason that you probably got the error is that the cluster types do not match exactly. Without any description of the error (code) we can't know for sure.
0 Kudos
Message 2 of 3
(2,668 Views)
Hello,

You should definitely be able to pass the cluster from the main VI to a sub VI. Most likely, the cluster you have created in the sub VI does not have exactly the same elements in the same order as the main VI's cluster. To view or change a cluster's element order, right-click on the border of the cluster and select "Reorder Controls in Cluster..." There is also a lot of great information on clusters in the LabVIEW Help. Please also see my attached example for further information.

I hope this helps! Have a great day!

Liz Fausak
National Instruments
Message 3 of 3
(2,668 Views)