LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating Signal Energy in a waveform

Salutations,

I am attempting to find the signal energy for a waveform.  I know that signal energy is calculated by squaring the signal and then integrating over the bounds of the signal.  I have not found a good vi from labview that properly performs this task.  I have looked at integral x(t).vi, integral x(t) ptbypt.vi.  Both of these functions seem to prove inaccurate; I attempted to integrate the numbers 0,1,2,3,4,5,6 (t ->.5t^2) with a sample dt of 1.  This should have returned a value of 18, but I did not obtain this number.

Is there some mistake I am making in the labview idea, or is there a better VI that will calculate the signal energy. I have looked at the STFT approach; however, this seems to be a rather robust technique for just finding a simple integration value.

Sincerely,
E. Smith
0 Kudos
Message 1 of 2
(5,111 Views)

Hi Smith,

I found this VI in examples shipped with labVIEW.

It is used to demonstrate Parseval's Theorm (Total energy of signal in time domain= Total energy of signal in freq domain)

Hope it helps

Regards

Dev

Message 2 of 2
(5,100 Views)