diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Equipment & Tools (http://www.diyaudio.com/forums/equipment-tools/)
-   -   Time-view of distortion residual (http://www.diyaudio.com/forums/equipment-tools/230692-time-view-distortion-residual.html)

jan.didden 23rd February 2013 09:08 AM

Time-view of distortion residual
 
Many of us seem to slowly migrate from dedicated distortion measuring equipment (HP, Tek, AP) to software based solutions based on a sound card.
One feature I always valued on the dedicated equipment was that you can look at the distortion residual, basically the waveform coming out of the fundamental rejection filter.
If you know how to interprete that residual, you can tell a lot about what is going on in the DUT.

With software/sound card solutions this feature is lost.
But does it have to be?
The software involved effortlessly switches between frequency (FFT) and time domain views.
On idea I had is this: you look at the FFT of the signal, and digitally remove whatever is in the fundamental's bin. Then you take the result, convert it back to the time domain and presto! that is the distortion residual.
You can then show it on the PC or send it out through the other soundcard analog output so you can put it on a 'scope.

As far as I know, nobody has done this. Is there a good reason why it isn't done, or is it a case that nobody thought about it yet?

Comments?

jan

abraxalito 23rd February 2013 09:16 AM

You'd need to keep the phase part of the FFT too, without the phase the value of the residual as a diagnostic is somewhat diminished. Also there's no one bin for the fundamental, its smeared out by the windowing function. That is unless the sample rate clock is locked to the test tone fundamental, which is entirely possible if the test tone DAC and the ADC are on the same soundcard.

jan.didden 23rd February 2013 09:27 AM

Quote:

Originally Posted by abraxalito (Post 3382484)
You'd need to keep the phase part of the FFT too, without the phase the value of the residual as a diagnostic is somewhat diminished.

Right. But that is not a real problem, is it?

Quote:

Originally Posted by abraxalito (Post 3382484)
Also there's no one bin for the fundamental, its smeared out by the windowing function. That is unless the sample rate clock is locked to the test tone fundamental, which is entirely possible if the test tone DAC and the ADC are on the same soundcard.

Yes I realised that. I guess that too is not a real issue, but must be safeguarded in the software. For instance, one software I tested (can't remember the name at the moment) has a setting where you lock the two and also size the FFT to make it totally synchronous, no window needed.

Edit: I believe Virtins has the synchronous option.

jan

abraxalito 23rd February 2013 09:33 AM

No, keeping the phase of the FFT isn't any kind of problem.

I'm wondering though given the need for phase locking the SR to shoe-horn the fundamental into just the one bin whether there's any role for FFT at all. Since the time sequence is what's already acquired, why not just subtract the invFFT of the fundamental from that (still in the time domain) to get the residual directly? This just needs measuring the precise amplitude and phase of the fundamental to get a null.

jan.didden 23rd February 2013 09:41 AM

Something like this maybe:

....the filtering of a FFT filter is not done in time domain. Instead, the input signal is transformed from time domain to frequency domain using FFT, its spectrum is then multiplied with the filterís frequency response and the result is transformed back to time domain using inverse FFT.

jan

jcx 23rd February 2013 09:42 AM

I built a subcircut for LTspice: http://www.diyaudio.com/forums/softw...ml#post1333137

I assume Audio DiffMaker wouldn't have any trouble with sine wave input

jan.didden 23rd February 2013 09:49 AM

That Spice tool is brilliant!
Maybe I finally should convert to LTspice after all...

But I am also looking for a soundcard/software solution; though, come to think of it, you can feed LTspice an external .wav and also export a signal to .wav, isn't it?

jan

jcx 23rd February 2013 05:32 PM

LTspice does have .wav I/O - can simultaneously play and record with Audacity - digital sine .wav can be generated in either, with same soundcard DAC/ADC using a common clock sync shouldn't be a problem

but I expect the Liberty Insturments free DiffMaker sw would do a better job with a deeper null

jan.didden 23rd February 2013 07:39 PM

You mean feeding Diffmaker the fundamental and the distorted version and do a subtraction? Yes I should try that out.

jan

RNMarsh 2nd March 2013 06:05 PM

jan.... That would be great.... waiting to hear your results.

Thx-RNMarsh


All times are GMT. The time now is 03:26 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio


Content Relevant URLs by vBSEO 3.3.2