12-30-2020 05:00 AM
Dear all,
I have two 2D arrays containing spectrometer data (read from txt files via "read spreadsheet" vi).
X values = wavelength (from 400 - 700 nm), Y values = corresponding amplitude.
Problem:
Spectral data have been recorded with two different spectrometers with differing resolution.
Array1 = 1609 data points in the 400 - 700 nm range.
Array2 = 713 data points in the 400 - 700 nm range.
How can I interpolate array2 in order to make it 1609 data points as well?
(I need to do calculations with both spectra hence array size need to be the same)
Thanks a lot,
Holger
Solved! Go to Solution.
12-30-2020 06:27 AM
Have you checked this example: C:\Program Files (x86)\National Instruments\LabVIEW XXXX\examples\Mathematics\Interpolation\1D Interpolation.vi ? I guess in your case you need to play with xi value, so it will be possible to scale it up to 1609 points.
12-30-2020 06:40 AM
Thanks a lot for getting back to me, kosist90!
In the meantime I found a powerful yet simple solution using the Resample Waveforms Single Shot vi.
For those interested, I attach a screenshot.
Thanks again, Holger