Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Harmonic Distortion Analyzer VI

Solved!
Go to solution

Hello all,

 

I am analyzing data from an ADC with some of the waveform measurement pallet vis. The "Harmonic Distortion Analyzer vi" seems every useful but is giving me some heard time. I compared the fundamental and overtone amplitude of a signal in two ways: from an FFT, and by converting the amplitudes to dBV (I am measuring Volts). Both are outputs of the same vi, but there is an offset of about 3 dB between the two. Am I missing something basic?

 

Hope you could help me out with this.

 

Amir

0 Kudos
Message 1 of 7
(6,112 Views)

Hi Amir,

 

I am a little unsure abuot the set-up of your waveform analysis. Can you attach a sample VI to show how you are using the Harmonic Distortion Analyze VI and how you are comparing amplitudes?

 

Thank-you. 

 

Best regards,

Anna L

Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(6,087 Views)

Hi Blizzard,

 

I'm away from my computer right now, so I'll post it on Sunday. I connected a WFM signal to the HDA vi and inspected it's output in two ways:

1. Converting the extracted frequency components to dB (20*log10(Amp)).

2. Inspecting the amplitude of the same peaks in the FFT exported form the same vi.

 

By the way, are the frequency components amplitude shown as V RMS?

 

Thanks,

 

Amir

0 Kudos
Message 3 of 7
(6,078 Views)

Hi Amir,

 

Are you doing any windowing on the peaks from the FFT and if so what type? Are you applying a correction factor in association with this wave?

 

Thank you!

 

Regards,

 

Anna L

Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(6,065 Views)

If I remember correctly, the HDA vi usses Haning window as default, I used the vi in it's basic fetures without any additions.

 

Amir

0 Kudos
Message 5 of 7
(6,054 Views)
Solution
Accepted by topic author Amirber

Hi Amir,

 

I've tried replicating what you described, and I am able to see a small (about 3 dB) offset between my two outputs. This is when the FFT is set to Peak-to-Peak, with Hanning windowing (which is indeed default for the Harmonic Distortion Analyzer VI).

 

This offset disappears when the FFT is changed to RMS, which indicates that the Harmonic Distortion Analyzer VI outputs RMS amplitudes. To make sure this is correct, try changing the settings of your FFT and see if the offset disappears.

 

If this isn't the case, please go ahead and post a sample VI of your procedure, as Anna suggested, so that we can troubleshoot this further.

 

Thank you,

Xavier
0 Kudos
Message 6 of 7
(6,003 Views)

Looks like this is the source of the discrepancy, Thank you both!

0 Kudos
Message 7 of 7
(5,964 Views)