LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autocorrelation function

I have 25,000 data points in a Excel/txt file. I'd like Labview to read the data, calculate the autocorrelation function and save the autocorrelation results in another file.
Here's the idea:
http://www.protein-solutions.com/psi_books/light_scattering/dynamic/how_is_the_correlation_curve_measured_.htm
I'm a novice in Labview. Could you please suggest a vi that allows me to do this?
Thank you,
Ratna
0 Kudos
Message 1 of 3
(3,106 Views)
There's an AutoCorrelation function on the Analyze>Signal Processing>Time Domain palette and an AutoCorrelation PtByPt on the Analyze>Point by Point>TimeDomainPtByPt palette. These come with the full and professional version of LabVIEW but not the base version.
0 Kudos
Message 2 of 3
(3,105 Views)
In its simplest form this can be done by dropping a read spreadsheet function from the file palette on the diagramme, add the autocorrelation function, and finally a write to spreadhseet function...wire the 1D output of the read to the autocorelation and the output array to the input of the write function...

However, you may want to make the code more robust and flexible by using the file dialog function prior to the read and write, you may want to automatically generate the new file names/paths...and the files may not be formatted in such a way that you can use the 1D output of the read directly...perhaps you need to use the 2D output and then the array subset to get the correct data...perhaps you need to transpose the array as well to get the input to the autocorr.
function the way you want it..
0 Kudos
Message 3 of 3
(3,105 Views)