Warning, this may be considered a somewhat newbie question.
My understanding of what a distortion analyzer does is it basically notches out the original sine wave signal, so that what's left is just the distortion.
Could a modern DSO (e.g. Rigol 1052e or Instek 1062a) that has math functions be used to do the same thing without purchasing a distortion analyzer? I'm thinking take a low noise audio generator, and split the signal to feed the circuit being tested and one input channel of the DSO. Then feed the output of the circuit being tested into the other channel of the DSO, set it to subtract the two signals, and voila we can look at the distortion by itself, and even do FFT analysis on it.
Thinking about this a little more, I suppose there might be issues with the 8-bit sampling in the scope introducing quantization errors (distortion). And there might be a need to precision-adjust the levels so that we don't end up measuring level mismatches.
Has anyone tried this?
My understanding of what a distortion analyzer does is it basically notches out the original sine wave signal, so that what's left is just the distortion.
Could a modern DSO (e.g. Rigol 1052e or Instek 1062a) that has math functions be used to do the same thing without purchasing a distortion analyzer? I'm thinking take a low noise audio generator, and split the signal to feed the circuit being tested and one input channel of the DSO. Then feed the output of the circuit being tested into the other channel of the DSO, set it to subtract the two signals, and voila we can look at the distortion by itself, and even do FFT analysis on it.
Thinking about this a little more, I suppose there might be issues with the 8-bit sampling in the scope introducing quantization errors (distortion). And there might be a need to precision-adjust the levels so that we don't end up measuring level mismatches.
Has anyone tried this?
It's a good question actually. Unfortunately it is not that simple.
One problem is phase shift. If you introduce just 1 degree of phase shift between input and output, then you will end up with a residual signal after subtracting, at a level of about -40 dB (1%). I suppose you could try to insert a phase-shifting circuit, but then that circuit could introduce even more distortion and noise, and you would need to constantly tune the phase shift. And you can forget about using anything other than a sine wave input since the phase shift will be different at different frequencies and you would not be able to fix that. Very old distortion analyzers with a manually tuned notch had a similar problem... the notch would drift out of tune while in the process of taking the measurement (a multi-step process) which would lead to a significant source of error.
This still might be useful to look at the spectrum of the distortion. You can remove most of the fundamental in the subtraction, and do an FFT on the residual. Ignoring the spike at the fundamental frequency, you could then observe the relative levels of the harmonics.
One problem is phase shift. If you introduce just 1 degree of phase shift between input and output, then you will end up with a residual signal after subtracting, at a level of about -40 dB (1%). I suppose you could try to insert a phase-shifting circuit, but then that circuit could introduce even more distortion and noise, and you would need to constantly tune the phase shift. And you can forget about using anything other than a sine wave input since the phase shift will be different at different frequencies and you would not be able to fix that. Very old distortion analyzers with a manually tuned notch had a similar problem... the notch would drift out of tune while in the process of taking the measurement (a multi-step process) which would lead to a significant source of error.
This still might be useful to look at the spectrum of the distortion. You can remove most of the fundamental in the subtraction, and do an FFT on the residual. Ignoring the spike at the fundamental frequency, you could then observe the relative levels of the harmonics.
for audio you can use better quality soundcards - although most cheap motherboad chipsets today are good to much better than -80 dB noise and distortion
Audio DiffMaker is free sw for very accurate .wav audio differencing with time, fr, sample rate compensation
Audio DiffMaker
RMAA is another free audio test sw which is good for quick loopback testing of your PC/soundcard to see its limitations
Audio DiffMaker is free sw for very accurate .wav audio differencing with time, fr, sample rate compensation
Audio DiffMaker
RMAA is another free audio test sw which is good for quick loopback testing of your PC/soundcard to see its limitations
To measure distortion, there's two fundamental approaches.
1) Notch out the fundamental and measure the residual. This gives you THD+N.
2) Perform an FFT on the measured signal. This will give you the THD (no +N).
Most digital scopes use an FFT. You can get software that'll use a computer soundcard to do the same.
If you want to go the first route, I suggest looking at state-variable tracking filters. That's a bit of a research project, but in the end all you'll need for test equipment is a true RMS voltmeter. You can look at some of the existing designs. Something like the HP 8903A or 8903B audio analyzer would be a good place to start. You can get the service manual with full schematics on Agilent's website.
~Tom
1) Notch out the fundamental and measure the residual. This gives you THD+N.
2) Perform an FFT on the measured signal. This will give you the THD (no +N).
Most digital scopes use an FFT. You can get software that'll use a computer soundcard to do the same.
If you want to go the first route, I suggest looking at state-variable tracking filters. That's a bit of a research project, but in the end all you'll need for test equipment is a true RMS voltmeter. You can look at some of the existing designs. Something like the HP 8903A or 8903B audio analyzer would be a good place to start. You can get the service manual with full schematics on Agilent's website.
~Tom
Thanks for the very enlightening responses. I've been up late last night researching standalone distortion analyzers (#1 from the last post), and it looks like buying a reliable one even used gets up towards $1000 (not to say there aren't bargains that people luck into here and there). That's way out of my just-starting-out hobbyist budget.
I actually don't have a need for a distortion analyzer right now, but I just thought while I'm in the process of buying a scope and associated gear I might want to find one that comes along with something that could be used for distortion analysis later on down the road when I actually need it.
The Instek 1062a scope that I just ordered sounds like it won't do it well, but I suppose if I find a situation where I really need distortion analysis I can beg or borrow someone's PC based scope with built in distortion analysis.
I actually don't have a need for a distortion analyzer right now, but I just thought while I'm in the process of buying a scope and associated gear I might want to find one that comes along with something that could be used for distortion analysis later on down the road when I actually need it.
The Instek 1062a scope that I just ordered sounds like it won't do it well, but I suppose if I find a situation where I really need distortion analysis I can beg or borrow someone's PC based scope with built in distortion analysis.
I've actually made a bit of a hobby out of buying broken distortion analyzers and fixing them. I run them through the full adjustment procedure and performance testing to verify the repair. I sell them for around $600. I don't have one right now, but I'll post them in the Swap Meet forum when I do.
~Tom
~Tom
Could a modern DSO (e.g. Rigol 1052e or Instek 1062a)
So you decided to go for the Instek? I think Instek 1062A is a good basic scope for hobbyist but most forum members at EEVblog EEVblog Electronics Community Forum - Index choose Rigol over the Instek, maybe there is something on the 1052E that is missing on 1062A? 😕
These DSO's only use 8 bit A/D's (at least one of these, this one shows the spec here Instek GDS-1062A Oscilloscope Digital Storage 60MHz Instek GDS-1062A GDS1062A GDS 1062A), so with the FFT you're not really going to see anything (such as a distortion harmonic) below circa 48dB of the fullscale input. A modern 24-bit computer interface with free software will beat that bigtime.
^+1, the 8-bit ADCs of most DSOs is a very limiting factor in doing distortion or any sort of signal level analysis on audio signals.
At very best the level of harmonics and noise would have to be above -48dB to be visible at all, making the measurable THD+N floor a rather high 0.4%. In practice 0.8% would be a more practical limit.
OTH a caution re: using a sound card is that the sample frequencies are rather low, and that many consumer level cards/USB devices have 20-22kHz brick wall low pass filters on the inputs. These limit the useful fundamental test frequencies to 10kHz or less, as even at 10kHz only 1 harmonic will make it through the input filter. At frequencies >10kHz no harmonics would get past the brick wall.
Some high-end/pro level cards and USB devices do have switchable filters, at a bit less than the Nyquist frequency, depending on the selected sample rate. These can extend the useful fundamental frequency range.
At very best the level of harmonics and noise would have to be above -48dB to be visible at all, making the measurable THD+N floor a rather high 0.4%. In practice 0.8% would be a more practical limit.
OTH a caution re: using a sound card is that the sample frequencies are rather low, and that many consumer level cards/USB devices have 20-22kHz brick wall low pass filters on the inputs. These limit the useful fundamental test frequencies to 10kHz or less, as even at 10kHz only 1 harmonic will make it through the input filter. At frequencies >10kHz no harmonics would get past the brick wall.
Some high-end/pro level cards and USB devices do have switchable filters, at a bit less than the Nyquist frequency, depending on the selected sample rate. These can extend the useful fundamental frequency range.
These DSO's only use 8 bit A/D's (at least one of these, this one shows the spec here Instek GDS-1062A Oscilloscope Digital Storage 60MHz Instek GDS-1062A GDS1062A GDS 1062A), so with the FFT you're not really going to see anything (such as a distortion harmonic) below circa 48dB of the fullscale input. A modern 24-bit computer interface with free software will beat that bigtime.
+1
The shallow bit depth of a typical DSO makes one pretty much useless for this.
Yes, I've found the FFT function on the instek 1062a is more of a toy than a useful tool, for the reasons given above.
As to why so many people chose the rigol 1052e instead, I think it's just because the Instek wasn't around when most of the 1052e posts were made. Kind of like how people still buy the products with hundreds of amazon reviews even when there's newer better available.
As to why so many people chose the rigol 1052e instead, I think it's just because the Instek wasn't around when most of the 1052e posts were made. Kind of like how people still buy the products with hundreds of amazon reviews even when there's newer better available.
The FFT function on any 8-bit DSO is no more than an interesting toy for nearly any audio frequency work. You need a minimum of 12-bit DACs to get even close, and even at that the very best dynamic range will be only 72dB, with 66db more likely.
FWIW A number of the older Lecroy 'scopes (93xx and 94xx series) offer oversampling "resolution enhancement" modes that can create solid 11-bit equivalent resolution (66dB dynamic range) at audio frequencies...
FWIW A number of the older Lecroy 'scopes (93xx and 94xx series) offer oversampling "resolution enhancement" modes that can create solid 11-bit equivalent resolution (66dB dynamic range) at audio frequencies...
That does bring me to ask another newbie question: What piece of equipment would actually show me the spectrum of an audio (20-20k) signal? I had a craigslist notification on "spectrum analyzer", and most of the ones I came across were focussed on higher frequency radio bands. Other than the 1/3 octave displays usually found attached to equalizers, is there such a thing as a standalone audio spectrum analyzer? What would I google to find it? I'm thinking ideally something that would clearly show harmonics and other frequency domain processing artifacts would be cool. This is really just for my education, not trying to solve any particular problem.
Firstly, it depends on what you mean by "audio" whether an 8-bit DSO/FFT is useful. I used a Tek TDS-whatever-it-was (crt display) scope circa 1997 when designing and testing a modem for use over the POTS phone line. The 1 GSPS sampling was way overkill, but the 48dB was just enough to see what was going on with the modem and phone line. On the other hand, this was surely one of the last POTS-connected modem designs ever.
To post #14, yes, there is such equipment, I recall an HP FFT audio spectrum analyzer, I forget the model number, that did something like at least 70dB S/N and up to maybe 100kHz bandwidth. There are also more specific devices made by Audio Precision and perhaps another such company, specifically for testing audio devices.
But furthermore, there are good quality USB-connected computer A/D and D/A audio interface boxes in the $100 range that go to 24 bit/192k sampling rate, and PC (and I presume Macintosh and Unix/Linux) software to do FFT's and other tests. I recall there's some thread with a list of such software here on DIYAudio somewhere.
Googling this brings up some good hits:
audio test software
To post #14, yes, there is such equipment, I recall an HP FFT audio spectrum analyzer, I forget the model number, that did something like at least 70dB S/N and up to maybe 100kHz bandwidth. There are also more specific devices made by Audio Precision and perhaps another such company, specifically for testing audio devices.
But furthermore, there are good quality USB-connected computer A/D and D/A audio interface boxes in the $100 range that go to 24 bit/192k sampling rate, and PC (and I presume Macintosh and Unix/Linux) software to do FFT's and other tests. I recall there's some thread with a list of such software here on DIYAudio somewhere.
Googling this brings up some good hits:
audio test software
Re: "To post #14, yes, there is such equipment, I recall an HP FFT audio spectrum analyzer, I forget the model number, that did something like at least 70dB S/N and up to maybe 100kHz bandwidth."
HP Agilent 3562A perhaps?
A more basic Analog one might be the HP3580A.
I use a Schlumberger SI 1220, 4 inputs, tracking generator and Power Spectrum noise floor of -120dB pk/hz between 0.05 and 50kHz, but these sort of instruments are very rare to find at an affordable price
Mind you the R&S®UPV Audio Analyzer looks like an instrument to have for all things Audio:
http://www.rohde-schwarz.us/en/products/test_and_measurement/audio/UPV-|-Overview-|-100-|-6077.html
Would need to win the Lottery to ever afford one though
Mik
HP Agilent 3562A perhaps?
A more basic Analog one might be the HP3580A.
I use a Schlumberger SI 1220, 4 inputs, tracking generator and Power Spectrum noise floor of -120dB pk/hz between 0.05 and 50kHz, but these sort of instruments are very rare to find at an affordable price
Mind you the R&S®UPV Audio Analyzer looks like an instrument to have for all things Audio:
http://www.rohde-schwarz.us/en/products/test_and_measurement/audio/UPV-|-Overview-|-100-|-6077.html
Would need to win the Lottery to ever afford one though
Mik
That does bring me to ask another newbie question: What piece of equipment would actually show me the spectrum of an audio (20-20k) signal? I had a craigslist notification on "spectrum analyzer", and most of the ones I came across were focussed on higher frequency radio bands. Other than the 1/3 octave displays usually found attached to equalizers, is there such a thing as a standalone audio spectrum analyzer? What would I google to find it? I'm thinking ideally something that would clearly show harmonics and other frequency domain processing artifacts would be cool. This is really just for my education, not trying to solve any particular problem.
HP 3580A Spectrum Analyzer - eBay (item 170621729256 end time Apr-03-11 08:50:17 PDT)
The HP 3580A does 5 Hz to 50 kHz. The linked auction closes in less than 21 hours. The current price is $56.
I had to google to see the front panel, but yes that's it. It was overkill for what I was doing (again, phone line stuff).Re: "To post #14, yes, there is such equipment, I recall an HP FFT audio spectrum analyzer, I forget the model number, that did something like at least 70dB S/N and up to maybe 100kHz bandwidth."
HP Agilent 3562A perhaps?
- Status
- Not open for further replies.
- Home
- Design & Build
- Equipment & Tools
- Possible to use difference math of DSO as distortion analyzer?