From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-24-2016 11:56 AM
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
Solved! Go to Solution.
05-24-2016 12:29 PM
check this
05-24-2016 12:51 PM
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
05-24-2016 03:12 PM
based on your wave you need to choose a method appropratie with your wave i use linear one
for you
test this vi
05-25-2016 12:49 AM
Can you please save it back to LabVIEW 2012?
Thanks,
05-25-2016 01:08 AM
05-25-2016 02:01 AM
Thank you. I thought there must have been a LabVIEW function somewhere.
05-25-2016 02:10 AM