From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-29-2017 01:10 AM
I have a cluster1(with 2 numeric controls) with other controls within a cluster2. I want to pass this cluster2 to subvi as a control refnum and then set cluster1's numeric control 's value. How do I do that? I cannot simply unbundle cluster2...
Solved! Go to Solution.
06-29-2017 03:46 AM
You can get the refnums to all the controls in the main cluster through the "Controls[]" cluster property; then you need to identify the inner cluster refnum using its name (label) or index (knowing the main cluster elements order); after this, you have the refnum you need in the shape of a Control refnum, so you need to pass it through the "To more specific class" node specifying that the "target class" is a cluster (you can create a constant for that input and select the following path: "Generic-GObject-Control-Cluster-Cluster"). This will give you the inner cluster refnum ready to get and set all cluster properties.
06-29-2017 08:57 AM
I wrote a nugget on the topic of using control references that can be found here.
But for the most simple approach, right click the sub-cluster from the FP and select "create reference". That will create a reference to the sub-cluster and no funny stuff required.
If you really want the funny stuff, see my nugget I linked above.
Ben
06-29-2017 09:29 AM
Ok, it works~ thanks~
06-29-2017 09:29 AM
Or you create a DVR to the cluster and change the value through a InPlaceStructure.
/Y