12-27-2013 05:44 PM
Hi all,
I have a subvi have a cluster embeded
I want to control the "enable" element from outside but I cannot wire the input terminal on the icron to the enable element. So how can I control the individual element of a cluster from outside?
Solved! Go to Solution.
12-27-2013 07:27 PM
12-27-2013 08:02 PM
@udka wrote:
One way is unbundle cluster, get the outside value from enable control and again bundle it with other two values. Since that is cluster, group of all those three you can connect entire cluster as terminal.
Thanks for reply. What I want is to update one element in a cluster and keep the others elements unaffected. If I understand you correctly, you suggest to pass the cluster strcutre from outside the vi, unbundle it inside the vi, using the enable value from outside and other two elements from inside to bundle a new cluster and pass it to the vi's original cluster. Yes, this way works. But in my future development, I have a very big cluster with so many elements, I just want to update few of them and keeps the others unchanged. The way you suggested works but not that practical. Is that any simple way to do that? Thanks.
12-27-2013 08:11 PM
Hi dragondriver,
you can use bundle by name function, you can see the help for bundle by name function , how to use this, in that you need to wire only the control you want to modify.
12-27-2013 08:13 PM - edited 12-27-2013 08:20 PM
@RChoudhary wrote:
Hi dragondriver,
you can use bundle by name function, you can see the help for bundle by name function , how to use this, in that you need to wire only the control you want to modify.
I don't know why, I tried it before and it doesn't work, it change the enable field but all other fields will be reset instead of unchange. But I try to write the code again and it works this time. Just want to confirm if I create a cluster by only bundle one field, will the others unchanged or reset to default values?
12-27-2013 08:20 PM
Hi dragon driver,
can you post your vi if possible.
below i am attaching a vi in which we are modifying value by bundle by name function.
12-27-2013 08:23 PM
12-27-2013 08:28 PM
@RChoudhary wrote:
Hi dragon driver,
can you post your vi if possible.
below i am attaching a vi in which we are modifying value by bundle by name function.
Hi RChoudhary,
Thanks for the code. I see wha'ts going on now. BTW, why the appearance of your controls looks difference from the regular controls (e.g. your number controls has round outshape but the regular one is singleline rectangle). How do you make it? Thanks.
12-27-2013 08:31 PM
Hi dragon driver, those controls are silver controls, you can use them from silver section in controls palette.
12-27-2013 08:51 PM
@RChoudhary wrote:
Hi dragon driver, those controls are silver controls, you can use them from silver section in controls palette.
Thanks a lot. It's cool. Besides the appearance, any difference from silver and regular controls?