Summary: Two impulse-response measurement methods are demonstrated, with source code provided in Matlab and Pure Data (PD). The Golay code measurement technique is particularly robust to additive white noise, while the swept sine measurement technique is robust to a weakly nonlinear motor exciting the linear system being measured.
|
Figure 1 depicts a linear system characterized by an impulse
response
Consider the causal, single-input single-output (SISO) system shown in
Figure 2. For simplicity, we will take the system to be
linear and discrete-time, so that it is characterized by its impulse
response
We will assume that both
|
Sound cards and sound interfaces are not designed for making transfer
function measurements. They merely provide a cost-effective solution
since almost all computers have sound cards. We demonstrate these
weaknesses given measurements made on a PreSonus Firepod sound
interface. The output from channel 1 was directly connected to the
line input on channel 1, and the sampling rate was
![]() |
![]() |
![]() |
One further consequence of the delay is that determining the phase
response of the measured system is more complicated. The delay is
responsible for a linear phase term since
The transfer function measurement toolbox assumes that the system
being measured is minimum phase. This is a valid assumption in many
cases. For instance, all strictly positive real transfer functions
are minimum phase. Dissipative systems are strictly positive real
(and therefore minimum phase) if the appropriate quantity is measured
and the sensor and motor are collocated. For example, if
For systems that are not minimum phase, such as systems involving a transmission delay between the input and output quantities, the phase plotted by the transfer function measurement toolbox is not the system phase response, but rather the minimum phase response corresponding to the measured system phase response.
The circuit shown in Figure 6 was measured using the
Golay-code method
to show how
the sound interface non-idealities affect a measurement.
|
The analog transfer function
In this case,
|
|
The ringing in the measured impulse response distracts from the more subtle characteristics of the ideal high pass filter impulse response. For transfer functions that pass large amounts of energy at high frequencies, it may be more instructive to inspect the frequency domain measurement results.
|
To exeraggerate the nonlinearity of a loudspeaker, we cut the cone of a mishandled driver as shown in Figure 10. We monitored the sound pressure several centimeters in front of the dustcap using an Audio Technica AT4049a microphone, which has a flat magnitude response to within 3dB from 100Hz to 5kHz. The output from channel 1 of the PreSonus sound interface was connected to the speaker via a power amplifier, and the microphone was connected to the microphone input of channel 1 on the sound interface. The following results are typical of sine sweep measurements to show how with a weakly nonlinear motor.
|
Inverse filtering the measured response results in Figure 11, which is a plot of nonlinear2ImpResp.wav. The linear contribution corresponds to the spike at the beginning, while the weakly nonlinear terms are clustered closer to the end of the response.
|
The main linear contribution is cut out and plotted in Figure 12. The measurement was not made in an anechoic chamber, so there is a reflection about 15ms after the main impact.
|
The nonlinear terms are shown magnified in
Figure 13. The lower order nonlinear terms
toward the right have larger magnitude but overlap less in time (see
Figure 13). Note that (Reference)
implies that the overlapping could be reduced by increasing the total
length
|
The magnitude and phase responses corresponding to the linear impulse response term from Figure 12 are shown in Figure 14 and Figure 15 in blue. For comparison, another sine sweep measurement was made at a lower level so that the speaker behaved approximately linearly. Decreasing the level also resulted in more noise and even some systematic error, as is evidenced by the red curves in Figure 14 and Figure 15. This comparison demonstrates that making measurements at larger levels can reduce the effects of noise, while nonlinear motor effects can be overcome with the sine sweep measurement technique.
|
|