LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a 2D array of 50 columns wide, I want to split it in 2 so that I can calculate the average of one half.

I have a 2D array of 50 columns wide, I want to split it in 2 so that I can calculate the average of one half.
Is there a quicker way, except from;
Read spreadsheet file, Index array for each column I want (25 of), build these back into an array and out put to an indicator.
My program is included.
0 Kudos
Message 1 of 6
(2,980 Views)
Yes, there is.  Using Array subset, you can output any block of that original 50 column array.  I changed what you posted and attached what you need to split it into 2 arrays.  Read more in the help for Array Subset.
0 Kudos
Message 2 of 6
(2,972 Views)
Oops, sorry I forgot to mention I am using LV7.1, can you re-save for v7 for me, thanks.
0 Kudos
Message 3 of 6
(2,969 Views)
Hmm, I thought I did.  Sorry about that.
Message 4 of 6
(2,967 Views)
Thanks, I would never have figured that out!
0 Kudos
Message 5 of 6
(2,963 Views)
No problem, that's what the forum is here for.  Glad I could help.
0 Kudos
Message 6 of 6
(2,954 Views)