# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution
Highlighted

## Multiply two spectral waveforms with non linear X axis

Hi All,

I have two spectral waveforms that I need to multiply together. The wavelength (X Axis) for each spectral measurement is non-linear and each graph has slightly different element 0 values.

This means I cannot just multiply the spectral values (Y Axis) and re-nornalise them.

Is there a method in LabVIEW that is able to do this. I have tried curve fitting and then using the generated curve but that also does not seem linear. I have also tried converting the XY Graph to a waveform and resampling it but as the X Axis is non-linear this does not work either. I don't particularly want to do the interpolation and multiplication manually but will if I have to.

Attached is a vi with some data. I only have access to LabVIEW 2012.

Thanks,

Greg

Message 1 of 8
(1,158 Views)

check this

Message 2 of 8
(1,148 Views)

## Re: Multiply two spectral waveforms with non linear X axis

Hi Hatef,

Thanks for the reply. That does work in getting the array sizes the same, but I was looking for a way to get the X Axis values the same too. This would need some interpolation and would be more generic especially if the one array is not twice the size of the other.

Greg

Message 3 of 8
(1,140 Views)

## Re: Multiply two spectral waveforms with non linear X axis

based on your wave you need to choose a method appropratie with your wave i use linear one
for you
test this vi

Message 4 of 8
(1,125 Views)

## Re: Multiply two spectral waveforms with non linear X axis

Can you please save it back to LabVIEW 2012?

Thanks,

Message 5 of 8
(1,101 Views)
Solution
Accepted by topic author GregPayne

Message 6 of 8
(1,095 Views)

## Re: Multiply two spectral waveforms with non linear X axis

Thank you. I thought there must have been a LabVIEW function somewhere.

Message 7 of 8
(1,091 Views)