From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with THD and THD+N measurement

Solved!
Go to solution

Hi,

 

I'm trying to a SNR measurement from an audio signal in LabVIEW. However, I cannot measure SNR correctly. After investigating I found that sometimes I can have a higher THD than THD+N. As I believe that this is not possible there should be a mistake somewhere in my VI.

 

Here the analysis part of my VI :

 

And sometimes, here is the result when distortion is high :

 

Any idea for resolving this ?

 

Thanks

 

Message Edité par Alexandre.DaCosta le 01-16-2009 09:28 AM
0 Kudos
Message 1 of 5
(3,282 Views)
Nothing about this ?
0 Kudos
Message 2 of 5
(3,237 Views)

Bon soir Alexandre,

 

are you using simulated input signals and could post your signals? How many harmonics are you calculating?

 

Best regards

 

MarianMO

Marian Vorderer
0 Kudos
Message 3 of 5
(3,228 Views)

Hello Marian,

 

No, I'm not using simulated input signals but audio input signal from a usb sound card.

 

The Distortion measurement VI is set to calculate 20 harmonics.

 

Thanks for you help.

 

Have a nice day.

 

Alexandre

0 Kudos
Message 4 of 5
(3,204 Views)
Solution
Accepted by topic author adcpc

It seems to be resolved now. The problem could appear when audio acquisition was too short (under 50 ms).

 

If audio acquisition is long enough then THD+N is always higher than THD.

 

Thanks,

 

Alexandre

0 Kudos
Message 5 of 5
(3,198 Views)