05-28-2013 02:32 PM
Hi,
I am trying to understand the integration of a waveform. I used two vi to calculate the integral of a sine wave although the shape of the graph is different the values on y-axis are different. Can someone explain this ? and which is a better way to integrate a waveform. If I were to calculate definite integral of a waveform from 0 - t, whats the best approach to achieve this ? I am not familiar to integrate a waveform not represented in terms of formula. My goal is integrate an acquired sine signal.
Solved! Go to Solution.
05-28-2013 03:04 PM
By any chance are you sampling at 1KHz? The Express VI integrates a signal, while the Integral function "performs the discrete integration of the sampled function X". The difference is the presence or absence of dt, the time step. Integrating the signal (which carries dt along with it) implicitly includes it as the step size, while the integral of the "sampled function" needs you to add the step size (0.001 sec) into the sum.
05-28-2013 03:18 PM
yes I am sampling at 1KHZ. I still don't understand the difference in y-axis values ? can you please elaborate ?
05-28-2013 03:24 PM
If you sample at 1 KHz, dt = 0.001. 0.318 = 318 * 0.001.
05-28-2013 03:32 PM
you left dT at 1 rather than the correct 0.001 value
05-30-2013 11:39 AM
thanks for explaining I understand now. I also wanted to know if both the methods are same ? which method is better for calculating the integral of waveform ?
05-30-2013 03:51 PM
essentially they are very simillar underneath. I would tend to avoid the extra overhead of the Express vi.