From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract an array from an array of clusters

Hello everybody,

I have got an array of parameters, each one being represented by a
cluster of a name and a value.
I need to extract either just the names, or just the values, as an
array. Is there a standard VI performing that (so far I could not find
it), or must I do a loop by myself?

Thanks in davance

Pierre Chatelier
0 Kudos
Message 1 of 3
(2,466 Views)
You nust do a loop. But it only loop where you use unbundle by name for example. Use enable indexing and you will get your array.
0 Kudos
Message 2 of 3
(2,466 Views)
Hey Pierre,

Best bet is a For Loop using auto-indexing with nothing wired to the
iteration terminal... the input is the "array of clusters" with indexing
enabled... inside the loop, I've found that "Unbundle by Name" lets me see
what my output array is made up of... then, enable indexing on the output
and you have your array of elements.

Good luck,
Bill

Pierre Chatelier wrote in message
news:803b2d87.0206030059.102f98af@posting.google.com...
> Hello everybody,
>
> I have got an array of parameters, each one being represented by a
> cluster of a name and a value.
> I need to extract either just the names, or just the values, as an
> array. Is there a standard VI performing that (so far I could not find
> it), or must I do a loop by myself?
>
> Tha
nks in davance
>
> Pierre Chatelier
>
0 Kudos
Message 3 of 3
(2,466 Views)