LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract an element in an array?

I have an array which I don't know what the dimension is(e.g. if it's 1-D or n-D). I want to extract an element from every set of array (e.g. I want every RcvrTimeTag from first set to 12th set in array49), how do I do it?

thank you
0 Kudos
Message 1 of 4
(2,828 Views)
The LabVIEW term for what you call "extract" is "unbundle". Your data are in an array of clusters. The clusters contain bundled elements. If you want a particular element unbundled from an array of clusters, use a FOR loop with an Unbundle By Name function to select the element you want. I have attached an example to demonstrate.

Daniel L. Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 4
(2,828 Views)
examine the attached test[2].vi
0 Kudos
Message 3 of 4
(2,828 Views)
Greetings!

There is an ARRAY tool called ARRAY SIZE which will automatically tell you the number of dimensions in an array, plus the number of elements in each dimension.
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 4 of 4
(2,828 Views)