LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect external inputs into cluster elements?

Solved!
Go to solution

Hi all,

  I have a subvi have a cluster embeded

 

 c.png

 

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?

0 Kudos
Message 1 of 11
(3,852 Views)
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
uday
0 Kudos
Message 2 of 11
(3,826 Views)

@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.

0 Kudos
Message 3 of 11
(3,821 Views)
Solution
Accepted by topic author dragondriver

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.

0 Kudos
Message 4 of 11
(3,815 Views)

@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?

0 Kudos
Message 5 of 11
(3,813 Views)

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.

0 Kudos
Message 6 of 11
(3,807 Views)

Example_VI.png

0 Kudos
Message 7 of 11
(3,801 Views)

@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.

0 Kudos
Message 8 of 11
(3,796 Views)

Hi dragon driver, those controls are silver controls, you can use them from silver section in controls palette.

0 Kudos
Message 9 of 11
(3,792 Views)

@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?

0 Kudos
Message 10 of 11
(3,785 Views)