Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/11/06 14:32
Read: times


 
#127779 - Mix of numerical calculation and FFT
Responding to: ???'s previous message
Assume, that FFT tells you that signal is

SIGNAL = a1 x sin (wt) + b1 x cos (wt) + a2 x sin (2wt) + b2 x cos (2wt) + a3 x sin (3wt) + b3 x cos (3wt) + ...

then

SIGNALRMS = SQRT(1/2 x (a1^2 + b1^2 + a2^2 + b2^2 + a3^2 + b3^2 + ...))

and

FUNDRMS = SQRT(1/2 x (a1^2 + b1^2))

So, as you intend to calculate SIGNALRMS numerically, means not by using the FFT, then you should calculate FUNDRMS as above and

THD = SQRT(SIGNALRMS^2-FUNDRMS^2)*100/SIGNALRMS

will finally do the trick.

By the way, if you synchronize the taking of samples with the zero crossings, "b1" will vanish eventually. Check this with a simulation.

Kai

List of 32 messages in thread
TopicAuthorDate
Measuring THD [ Total Harmonic distortion ]            01/01/70 00:00      
   ANalogue method.            01/01/70 00:00      
      Re: Analogue method.            01/01/70 00:00      
         fundamental flaw?            01/01/70 00:00      
            Re: Fundamental Flaw.            01/01/70 00:00      
               Digital filter            01/01/70 00:00      
                  Re: Fundamental Frequency.            01/01/70 00:00      
               FFT            01/01/70 00:00      
                  mains frequency            01/01/70 00:00      
                     Why rely on an assumption?            01/01/70 00:00      
                  Re: FFT            01/01/70 00:00      
                     FFT            01/01/70 00:00      
         What use?            01/01/70 00:00      
   Goertzel filters, maybe ?            01/01/70 00:00      
   FFT is the first choice            01/01/70 00:00      
      Is it?            01/01/70 00:00      
         If you know the fundamental.            01/01/70 00:00      
            Re: Fundamental            01/01/70 00:00      
               Multiple cycles            01/01/70 00:00      
                  The 50Hz fundamental must dominate            01/01/70 00:00      
               Fundamental and harmonics!            01/01/70 00:00      
                  Re: Fundamental and harmonics.            01/01/70 00:00      
                     You're getting into theory            01/01/70 00:00      
                     That is very simple!            01/01/70 00:00      
         I think, yes            01/01/70 00:00      
   Alfredos Code Doesnt seem to work properly.            01/01/70 00:00      
      Do you want it to write in "C"?            01/01/70 00:00      
         Yes Kai,            01/01/70 00:00      
      Eh? Endian issue.            01/01/70 00:00      
         Tags            01/01/70 00:00      
   How about this method for THD.            01/01/70 00:00      
      Mix of numerical calculation and FFT            01/01/70 00:00      

Back to Subject List