How do I calculate the integral of a signal using the trapezoidal rule?

Create a new channel and apply the following arithmetic channel calculation: 

integral((abs(chZ)+shift(abs(chZ),-t))/2)

Where:

  • chZ is the channel containing the signal of interest
  • t is the sampling period, e.g. 0.001 seconds for a 1 kHz sampling rate

Area under the curve

If you want to calculate the area under a selected part of a signal using the trapezoidal rule, use Data Pad’s integral calculations. While the Data Pad integral calculations are, like the standard integral channel function, rectangular, they can be used to generate a trapezoidal integral by referencing the following arithmetic channel calculation:

(chZ+shift(chZ,-t))/2

Then choose this newly calculated channel as the source channel for the Data Pad integral.

For further technical assistance with this or any other issue, please contact ADInstruments Technical Support by clicking HERE.