Audio.TST Archive
Audio Precision sends out the Audio.TST newsletter once a month to approximately 13,000 audio engineers and other audio professionals. Each issue looks at current events in audio test, answers readers´ technical questions and announces any AP news.
Notes from the Test BenchBy Bruce Hofer, Chairman & Co-Founder, Audio Precision We're all looking forward to NAB in Las Vegas and AES in Amsterdam. Both shows promise to deliver as AP introduces new products and Technotes to help you get your job done faster and easier. I hope to see many of you at one or both of the shows. In the meanwhile, our Director of Engineering Thomas Kite has put together a very interesting article on measuring complex impedance, and one of AP's earliest employees, John Payne, goes through a Factory Adjustment. Hopefully it will serve as a reminder to everyone of the importance of keeping instruments regularly serviced. Finally, those of you who subscribe to the AES Journal will see AP's new ad in the March issue. For those who don't have access to the Journal, the ad is reposted on the AP website here. The ad's point is simple: words come cheap and the proof is in the measurements. It's a value that I hold very closely, and one that drives every decision we make at AP. As a loyal AP user, I'm sure you will agree as well. Bruce Output: Tech tips and new applications from APMeasuring complex impedance with SYS-2722Director of Engineering Thomas Kite looks at the math involved in calculating complex impedance with the SYS-2722. Includes an AP Basic macro available for download. Linear passive circuit elements are characterized by their impedance. Impedance is a complex quantity consisting of a real part, known as the resistance, and an imaginary part, known as the reactance. The reactance is frequency dependent and can take two forms: inductive, in which the voltage waveform leads the current waveform, and capacitive, in which the voltage lags the current. Since impedance is frequency dependent, a variable frequency generator and AC level and phase meters are required to measure it. This makes the SYS-2722 ideal for making audio-frequency impedance measurements. This article shows how to make impedance measurements using SYS-2722, a test jig, and a supplied macro. The jig can be simply cables and a fixed resistor; AP tech support equipped a project box with connectors to make the job easier. The macro presents a user interface to set the measurement parameters. The results are shown in graphical form in the software. Test Setup
Derivation of impedanceFrom the circuit above, using the potential divider equation, we see that Vb / Va = Ztot / (Ztot + Rfixed ) (1) where Va and Vb are the complex levels at inputs A and B respectively, Rfixed is the known test resistance, and Ztot is the parallel combination of Z and Zin. Therefore Ztot = Rfixed (Vb / Va) / (1-Vb / Va) . We also know that Ztot = Z · Zin / (Z + Zin) And therefore we arrive at Z =Zin · Ztot / (Zin - Ztot ) . (2) Calibrating ZinThe unbalanced input of the SYS-2722 has an impedance of 100 kOhm in parallel with 185 pF. However, the test jig and cables used to connect the fixed resistor and the IUT may add to this. In particular, long cables are likely to add capacitance comparable to the input capacitance of the SYS-2722. For accurate measurements, it is necessary to account for this extra capacitance. The macro in this article provides a calibration cycle for this purpose. When performing a calibration cycle, the IUT must be removed from the circuit, leaving the jig and cables otherwise untouched. Once the calibration has been performed, the IUT is returned to the jig and the measurement is made. If the jig is not changed, the code can be updated with the measured value of the input impedance, so a further calibration cycle is not needed. Complex numbersBecause impedance is a complex quantity, we need complex mathematics to compute it. In equation (1) above, Va, Vb, and Ztot are all complex quantities. To use a SYS-2722 to measure complex impedance, we need to tackle two problems:
Polar vs. rectangular representationSYS-2722 has a level meter for each input channel, and a phase meter that measures the phase difference between input A and input B. If the generator signal is fed to input A, then the phase meter measures the phase of input B relative to the generator. This gives us a magnitude-phase, or polar, representation of the signal on input B. This can be converted to a complex value with the identity Vb= V cos(ø) + jV sin(ø) where Vb is the complex voltage at input B, V is the measured level on input B, ø is the phase meter reading in radians, and j= √-1. This is known as a rectangular representation. It is entirely equivalent to the polar representation, but is preferred here because it is easier to perform complex math in the rectangular representation. Complex math in AP BasicAP Basic calculates using real arithmetic. Special code must be written to perform complex arithmetic. This article uses a small library, Complex.lib, to handle complex numbers. The library defines a new data type as follows:
A constructor allows a new Complex to be created, and math functions take Complex parameters and produce Complex results. For example:
Two complex numbers can then be created and multiplied with the following code:
giving the complex result in c (c.re = –5, c.im = 10). AP Basic does not provide fully object-oriented classes and operator overloading, so code that makes use of the Complex library can be difficult to read at first. Supplied macrosThe easiest way to get started with impedance measurement is to use the supplied macro Impedance UI.apb. This macro was written by Audio Precision technical support, and presents a user interface to allow impedance measurements to be made easily. It also interacts with the Windows registry to store settings like the measured input impedance of your 2722. Impedance UI.apb interacts with Impedance.apb. This macro contains the core functions which calculate the IUT impedance and the instrument input impedance from measured sweep data. Impedance example.apb also uses the functions in Impedance.apb, but does not present a user interface. This macro is provided to show how to use these functions in your own code. Using the macrosBoth Impedance UI.apb and Impedance example.apb calculate the impedance of the IUT by running a sweep over the audio frequency range, measuring the channel A level, channel B level, and phase at each point. They then call Impedance.apb, which applies equations (1) and (2) above at each frequency to calculate the IUT impedance. The following figures are calculated and graphed:
The code can easily be changed to plot other commonly used parameters such as reactance, admittance (reciprocal of impedance), conductance (reciprocal of resistance), or susceptance (reciprocal of reactance). Some measured results10 kOhm resistor![]() DAC Input Impedance
Downloads
Reference
Sound Advice: Audio Test Q&AWell AdjustedTom Williams interviews AP’s Service Supervisor John Payne as he performs a Factory Adjust on a SYS-2712 audio analyzer. John has been with AP almost since the company began in 1984. There is very little he doesn’t know about audio analyzers. Q: Why should AP customers get an adjustment? Q: What do the ECOs do?
Q: Why don’t customers adjust their own instruments? Q: What should customers do before they send in their units? Q: Thank you for your time John. Any last comments?
Test Results: AP News & EventsUPCOMING EVENTS NAB Show 2008 | Las Vegas AES Europe 2008 | Amsterdam |



