DrObb,
Integrate calculates the discrete numeric integral of the data you provide. In graphical terms, this means that each point in the output data is the sum of the area under the curve up to the corresponding value in the input data.
To calculate the area under a section of the input data, take the difference of the corresponding values in the output data. For instance, if I want to know the area under the curve between the 100th and 200th elements of the input waveform, I would use output[199] - output[99].
The xInit and xFinal are the boundary conditions for your integration (i.e. the approximate value before the first data point and the approximate value after the last data point). I mention this because 500 seems like an unusual boundary val
ue.
Also for the integral value to be meaningful, dt must be correctly specified. dt should equal the distance along the x axis between successive data points. For instance, if your Input data is in Watts with data taken every 0.1 second, then specifying dt as 0.1 will correctly give you an energy value in Joules.
I hope that helps.
TonyH
Measurement Studio