LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of clusters accessing an element

Solved!
Go to solution

Hi everyone,

 

   I would like to know if someone knows how to access the next: Lets say I have a cluster of 3 numerical controls and one string field. Now I put this cluster inside of an array to have 3 times the custer. My question is how I can access to (for example) the string field of the third cluster and write something inside? Of course programatically.

 

Thanks in advance

0 Kudos
Message 1 of 5
(316 Views)

Get the desired element value with Index Array, modify its content (Bundle or Bundle By Name), then use Replace Array Subset to place the new value back into the array at the same position.

pincpanter_0-1638264413361.png

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019
Message 2 of 5
(304 Views)

or use the InplaceElement structure two times...

Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 3 of 5
(301 Views)
Solution
Accepted by topic author Necsuss

Some variations on the theme:

 

(OOPS, third element should obviously be 2, coffee hasn't sunk in yet)

Cluster in Array.png

Message 4 of 5
(298 Views)

Thanks, that worksfor me. The part with the unbundle by name it is the trick !!!

Message 5 of 5
(282 Views)