LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to retrieve a column from an array?

I have data saved in a 2x2 array, the columns each represent 1 channel ie: column 1=thermocouple 1, column 2=thermocouple 2 etc. I want to take each column and average the contents of that column. The dimensions are user inputs. I would attach some example code but I don't really know where to begin. I've looked through the array functions but none seem appropriate.
 
Thanks for the help.


Message Edited by tzj on 05-19-2008 09:16 AM
0 Kudos
Message 1 of 7
(3,206 Views)
see the attachment. Attach ur example code.
 
Thanks,
Mathan
0 Kudos
Message 2 of 7
(3,202 Views)

sorry about the little typo, I don't have any example code as I'm pretty lost as to where to begin. I thought about using two nested for loops and reading each element individually, building seperate 1D arrays with them, then averaging these arrays, and finally building another array using these averages. Is there a better, less tedious way to do this?

Thanks.

0 Kudos
Message 3 of 7
(3,184 Views)

Hi tzj,

please check the attached vi, if that is not the one you asked for pls reply.

Message 4 of 7
(3,172 Views)
HI tzj,
 
Please check the attached  updated vi, pls check and tell me whether you need this or something else.
0 Kudos
Message 5 of 7
(3,162 Views)

Or:



Message Edited by Dennis Knutson on 05-19-2008 09:36 AM
Message 6 of 7
(3,143 Views)
Thanks for the help, this is definately a lot more efficient than what I had in mind.
0 Kudos
Message 7 of 7
(3,129 Views)