LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

integral with irregular distances of values

I´m trying to integrate some measured data with the standard VI´s. It's a two dimensional array (x,y) and I want to integrate y over x. My problem is, that the values of the x-axis are not equidistant, thus I can not define a fixed dx. So I tryed to interpolate the array. It worked for linear interpolation, but that creates an appreciable error (compared to an Origin calculation). Other interpoaltions didn't work (because of the irregular x-axis?). Does anybody knows a proceeding that would solve this problem?!
 
Thanks
0 Kudos
Message 1 of 9
(3,064 Views)

Hi

At least there is the way of calculating it on your own.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 9
(3,058 Views)
Search for examples to resample unevenly spaced data.
Message 3 of 9
(3,054 Views)
All the examples I found required the Signal Processing Toolkit, which I do not have.  I do have Spline Interpolation 1D and it looks like it should do what you want pretty easily, but that is not in the base package either.  As much as becktho's suggestion hurts, it may be your best option.
0 Kudos
Message 4 of 9
(3,039 Views)

Many thanks jasonhill

This motivates me again as I was annoyed after receiving just one star. Smiley Wink

Maybe my first post was quiet to short, but I think it's better to calculate the integral on your own, than make lots of workarounds just to get a regular dx. It is not just the x-values that then have to be modified but also the y-values, which is not the best way I'd say.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 9
(3,035 Views)
0 Kudos
Message 6 of 9
(3,027 Views)

I'll try to imply an external matlab procedure. Seems to be the "simplest" and most exactly way...  😉

Thanks all for your help.

0 Kudos
Message 7 of 9
(3,015 Views)
unclebump,

The example you link to uses a waveform.  Waveforms can only have equadistant points.  As I understand it, Schaedel's data is unequally spaced.
0 Kudos
Message 8 of 9
(3,006 Views)