LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change a cluster item

I want to change only a cluster item without changing the others item. It's ok if I right click on the front panel and create a property node value, but my cluster is inside an array.

What is the best way to do that ?

Thank you
0 Kudos
Message 1 of 6
(2,968 Views)
You first need to index out the element out of the array in order to get the cluster. Then, use a Bundle or Bundle by Name (the latter if your cluster elements are named). Wire the cluster to the middle terminal so the cluster structure is known, and then wire the new value to the element you want to change. Then, use a Replace Array Element to errr.. well, replace the element back into the original array.

See attached:

0 Kudos
Message 2 of 6
(2,959 Views)
i will check out your vi. Thank you
0 Kudos
Message 3 of 6
(2,956 Views)
Hi,
you can change value either by using index array followed by
bundle by name or property node as you mentioned.
Both the things are seems to be comfort.

0 Kudos
Message 4 of 6
(2,940 Views)
it's ok.
Thank you.
0 Kudos
Message 5 of 6
(2,935 Views)
While a property node may work you should never use a property node when a simple wire will do the job. Property nodes incur overhead that is unnecessary and not justified in this case.
Message 6 of 6
(2,933 Views)