Search the web
Sign In
New User? Sign Up
ultimaserial_group · UltimaSerial Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
FFT1024 for THD measurement   Message List  
Reply | Forward Message #637 of 794 |
I am using VB6 to capture a 60 Hz sine wave at a sample rate of 12288.
I am using a 120V outlet (with a DI-730) for testing. The sampled data
goes through FFT1024 where I get PeakIdx. With multiples of Peak IDX I
have the targeted hormonic frequencies. Using the PowerPt at these
indexes I get the FFT value of the frequency. To convert to dB I
divide by PowerScaler.

V = FFT10241.GetPowerPt(FFT10241.GetPeakIdx * X)/(FFT10241.PowerScaler)

Then I get the actual magnitude of the frequency by unscaling the value
(But I don't know what this value represents. Does anyone know? Can I
convert it to volts? )

A = 10^(V/10)

For THD I use the squareroot of the sum of the squares of each of the
values over the fundamental.

THD% = sqr(A1^2 + A2^2 + A3^3 ...)/A0 * 100

But this seems to be off (by just over 2X), I don't near enough the
same values as measured on a PQ Meter. I believe I need to compare the
harmonic magnitudes to the fundamental magnitude to get individual
harmonic content. I would like to get %, magnitude, and phase of the
individual harmonics. Am I on the right track? Can anyone help?




Fri Nov 30, 2007 3:22 am

wolbie76
Offline Offline
Send Email Send Email

Forward
Message #637 of 794 |
Expand Messages Author Sort by Date

I am using VB6 to capture a 60 Hz sine wave at a sample rate of 12288. I am using a 120V outlet (with a DI-730) for testing. The sampled data goes through...
wolbie76
Offline Send Email
Nov 30, 2007
3:23 am

To calculate the phase, you can use GetRe and GetIm methods. BTW, FFT1024 is open source...
xchen992000
Offline
Dec 5, 2007
8:05 pm

Thank you for the response, Do you know the equations for use with the GetRe and GetIm to yield phase? I am still trying to learn FFT so that I can use the...
wolbie76
Offline Send Email
Dec 6, 2007
4:50 am

Check out the discussion here http://physics.nyu.edu/grierlab/idl_html_help/signal8.html...
xchen992000
Offline
Dec 6, 2007
3:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help