LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How manipulate cluster value in array of cluster

Hi,
I have an array of cluster, connectet to a while loop over shift register.
In the while loop I have to look for a specific cluster (I know the index of the cluster in the array), then compare an I32 value from the cluster to a value from another source. If these values are different then store the new value in the cluster. Else do nothing (next loop).
How can I do that?
I only need to manipulate one value from the cluster.
Thanks,
Thomas
 
0 Kudos
Message 1 of 3
(2,806 Views)
First you need to index out the cluster you are looking for, then use an unbundle or unbundle by name node to extract the info from the cluster, and write back the cluster element using a bundle and replace array element nodes. WSee the attached example.
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(2,802 Views)
That's exactly what I was looking for!
Thanks!
 
0 Kudos
Message 3 of 3
(2,798 Views)