LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays, arrays !!! Manipulating

Hello all,
Just a thing I don't understand :
I use a VI that returns arrays (1D and 2D).
I use it in a For Loop, so I get all the arrays when the loop exits.
1D arrays are stacked in a 2D array and 2D arrays in a 3D array.

How can I extract my 1D and 2D arrays in another VI ?

--
Bruno Colombet
Neurophysiologie et Neuropsychologie
INSERM E9926
Faculté de Médecine
27 Bd Jean Moulin
133385 Marseille cedex 05
0 Kudos
Message 1 of 2
(2,494 Views)
You can use Index array function, if you want to extract a
1D array from a 2D array, wire the 2D array to the input
and if for example, you need the first row of that 2D
array, wire a 0 to the index first value, add another index
value and disable indexing by right-clicking on it. In the
output, you'll get the first row of your 2D array, as a 1D
array. In case you need to extract columns, use the first
index empty and disabled, and wire the position you want in
the second. In a 3D array is the same but with 3 dimensions.
Hope this helps, if not, ask again.
Best Regards
Gorka Larrea
glarrea_1@hotmail.com



* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
Message 2 of 2
(2,494 Views)