LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW CAN I READ COLUMNS AND ROWS FROM A 2D 64 BIT ARRAY

I can successfully read 100 samples from the DAQ and add it into a 2D array above a noise level. The array contains 4 columns which are the analog inputs and 100 rows which are the voltage levels. I need to extract the data from each column and analise it by getting the min-max value, standard deviation, etc. How can I do this?
 
0 Kudos
Message 1 of 4
(3,210 Views)
You can index your 2D array by column, and once you have each column as a 1D array you can use the Array Max & Min function as well as the Std. Deviation and Variance function.

Cheers!
0 Kudos
Message 2 of 4
(3,207 Views)

You could also transpose the array, then do autoindexing with a FOR loop to obtain your statistical paramters from each colum (each iteration will process one column until you run out of columns ;)). Autoindexing the results at the output boundary will give you arrays of size four, one element for each column.

This keeps the diagram simple and it will automatically scale if you need something similar with seven or even 1000 columns. The code does not need to be changed. 😄

0 Kudos
Message 3 of 4
(3,199 Views)

Thank you for your fast answer I'll see if i can do it.

THANKS.

0 Kudos
Message 4 of 4
(3,196 Views)