LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiply two spectral waveforms with non linear X axis

Solved!
Go to solution

Hi All,

 

I have two spectral waveforms that I need to multiply together.

 

Spectrum.jpg

 

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

 

 

0 Kudos
Message 1 of 8
(3,145 Views)
0 Kudos
Message 2 of 8
(3,135 Views)

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

0 Kudos
Message 3 of 8
(3,127 Views)

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

0 Kudos
Message 4 of 8
(3,112 Views)

Can you please save it back to LabVIEW 2012?

Thanks,

0 Kudos
Message 5 of 8
(3,088 Views)
Solution
Accepted by topic author GregPayne
0 Kudos
Message 6 of 8
(3,082 Views)

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

0 Kudos
Message 7 of 8
(3,078 Views)
your welcome
I hope it solve your problem
0 Kudos
Message 8 of 8
(3,072 Views)