Professional Documents
Culture Documents
A New Algorithm For A High-Modulation Frequency and High-Speed Digital Lock-In Amplifier
A New Algorithm For A High-Modulation Frequency and High-Speed Digital Lock-In Amplifier
A new algorithm for a high-modulation frequency and high-speed digital lock-in amplifier
This content has been downloaded from IOPscience. Please scroll down to see the full text.
(http://iopscience.iop.org/0957-0233/27/1/015701)
View the table of contents for this issue, or go to the journal homepage for more
Download details:
IP Address: 202.28.191.34
This content was downloaded on 11/02/2016 at 05:15
E-mail: yangusst@yeah.net
Abstract
To increase the maximum modulation frequency of the digital lock-in amplifier in an online
system, we propose a new algorithm using a square wave reference whose frequency is an
odd sub-multiple of the modulation frequency, which is based on odd harmonic components
in the square wave reference. The sampling frequency is four times the modulation frequency
to insure the orthogonality of reference sequences. Only additions and subtractions are
used to implement phase-sensitive detection, which speeds up the computation in lock-in.
Furthermore, the maximum modulation frequency of a lock-in is enhanced considerably. The
feasibility of this new algorithm is tested by simulation and experiments.
=
2A
π
∑ 2n 1− 1 cos [2(1 − n)ω t + ϕ]0
In cable manufacturing, on-line and high-speed measurement n=1
∞
of cable capacitance in water is needed to monitor the capaci-
tance of the product, as shown in figure 1. The measurement −
2A
π
∑ 2n 1− 1 cos [2nω t + ϕ] + n (t )
0 s (3)
range of cable capacitance is 0–400 pF m−1, and the current n=1
2
Meas. Sci. Technol. 27 (2016) 015701 G L Jiang et al
−I⎢ ⎥−I⎢
⎣ 2 ⎥⎦
∞
⎣2⎦
n+1 − I [M ] (15)
+
2A
π
∑ (2−n1−) 1
n=1
sin{ [ωm − (2n − 1)ωr ] t + ϕ} + n′c(t )
⎡ M − 1⎤
(8)
Rq [n] = I [n] × C [n] = I [0] − I [1] − − I ⎢
Here, ωm and ωr are the angular frequencies of the modula- ⎣ 4 ⎥⎦
tion signal and reference signal. Likewise, the ac frequencies ⎡M⎤ ⎡ M + 1⎤ ⎡ 3M − 1 ⎤
+I⎢ ⎥+I⎢
⎣ 4 ⎥⎦
+ I⎢
are filtered by a low-pass filter, ⎣4⎦ ⎣ 4 ⎥⎦
1 2A ⎡ 3M ⎤ ⎡ 3M + 1 ⎤
−I⎢
⎣ 4 ⎥⎦
−I⎢
⎣ 4 ⎥⎦
X ′ = Ri′ (t ) * hL (t ) ≈
(9) × cos(ϕ ) − − I [M ] (16)
2k − 1 π
3
Meas. Sci. Technol. 27 (2016) 015701 G L Jiang et al
Figure 3. In-phase waveform of the phase-sensitive detector in the proposed DLIA, where the number of sampled points is 100. (a) The
waveform of the in-phase component Ri1[n] in this proposed DLIA, taking fm = 5 fr. (b) The waveform of the in-phase component Ri2[n]
in a traditional DLIA, fm = fr. (c) The frequency-domain of the in-phase component in this proposed DLIA, taking fm = 5 fr. (d) The
frequency-domain of the in-phase component in a traditional DLIA, fm = fr.
( )
(22) fs
M sin π f
fs
computational cost of this algorithm is much lower than that
of the classic algorithm. When M is larger than ten, the bandwidth is approximately
0.443fs /M . Because the ability of noise attenuation in an LIA
relies on the bandwidth of the low-pass filter, it is feasible to
III.B. Digital low-pass filter use a very narrow-bandwidth low-pass filter to reduce noise
It is well known that, for white noise, the optimum finite by improving the filter length M. However, this narrow band-
impulse response (FIR) filter is a simple averaging filter that width low-pass filter demands a longer measurement time.
has equal coefficients at each point [10] Therefore, a trade-off between short measurement and high
noise reduction must be found for each application.
1 Figure 4 shows the frequency response of a 100-point aver-
hL [n] = .
(18)
M aging filter and the frequency domain of the signals Ri1[n]
Thus, the X[n] and Y[n] signals are given by and Ri2[n] after passing the filter at the same condition as for
figure 3. Notice that the frequencies to which the unwanted
1 1 2A components in the DLIA have been shifted are also frequencies
X [n] = Ri [n] ×
(19) ≈ × cos(ϕ )
M 2k − 1 π at which the filter’s frequency response is zero. This means that
the X[n] and Y[n] signals will be free from these distortions. The
1 1 2A calculation formula of phase and magnitude can be obtained as,
Y [n ] = R q [n ] ×
(20) ≈ × sin(ϕ )
M 2k − 1 π π
A = (2k − 1) ×
(23) X [n]2 + Y [n]2
Generally, M is also called the integral time and is equal to the 2
number of sampled points in a measuring period. For the sam- ⎛ Y [n ] ⎞
pling frequency fs, an M -point averaging filter has a frequency ϕ = arctan ⎜ ⎟
response of zero as follows,
(24) ⎝ X [n ] ⎠
4
Meas. Sci. Technol. 27 (2016) 015701 G L Jiang et al
Figure 4. The procedures of the averaging filter remove the ac component and obtain the dc component in the DLIA. (a) Frequency
response of the 100-point averaging filter. (b) Frequency components of the Ri1[n] signal overlaid on the averaging filter frequency response.
(c) Frequency components of the Ri2[n] signal overlaid on the averaging filter frequency response.
IV. Experimental validation The results in table 2 show that the calculated amplitude
does not depend on the ratio 2k − 1 between the modulation
IV.A. Simulation frequency and reference frequency. This means that a DLIA
can work with an input signal for which the frequency is
To validate the feasibility of the proposed algorithm, a series
higher than the frequency in the square reference signal. The
of simulations were carried out on a personal computer by
simulation result well-validated the feasibility of the proposed
LABVIEW. For the simulation test, the reference frequency
algorithm and confirmed the result of the theoretical analysis.
was always set to 10 KHz, the modulation frequency was
2k − 1 times the reference frequency, the sampling frequency
was twenty times the modulation frequency and the input
IV.B. Experiment
signal was a sine wave of zero initial phase with added white
noise. Different ratios of the modulation frequency and refer- To validate the proposed DLIA with experimental data, a dig-
ence frequency are generated by changing the value k for a ital LIA based on TMS320F28335 digital signal processing
comparison between the actual value and the calculated one. (DSP) was implemented. The experimental test was carried
The calculated results are shown in the following table 2. out with a fixed reference frequency fr = 20 KHz, and the
5
Meas. Sci. Technol. 27 (2016) 015701 G L Jiang et al
Table 2. The calculated results of different amplitudes and ratios (2k − 1) between the modulation frequency and reference frequency.
Table 3. The number of outputs in a traditional DLIA and the proposed DLIA with different reference frequencies, which are all measured
within 1 s.
Traditional DLIA k = 1 k = 2 k = 3 k = 4 k = 5
3 3 3 3 3
1.5 × 10 2.2 × 10 2.6 × 10 3.0 × 10 3.3 × 10 3.5 × 103
sampled points in each measurement period were the same. modulation frequency and is able to be implemented in a general
The modulation frequency fm = (2k − 1)fr was varied by microprocessor to measure the responses of systems that have
changing the value of k, while the sampling frequency was a very high demand on the modulation frequency in real-time.
20 times higher, i.e. fs = 20 fm. The excitation signal was
passed through a capacitance with a known value of 10 pf.
Acknowledgments
The responses of this system were measured by the traditional
DLIA and the proposed DLIA. Then, we count their output This work has been supported by the National Natural Science
numbers in a measurement time of 1 s. Obviously, more output Foundation of China (11572201), the Innovation Program of
numbers represent a higher-speed measurement and also a Shanghai Municipal Education Commission (15ZZ072), and
better real-time measurement. The numbers of the outputs are the Hujiang Foundation of China (C14002).
shown in the following table 3.
As mentioned in the introduction, the measurement of cable
capacitance requires a modulation frequency of more than 100 References
KHz, and more than 2500 cable capacitance values should be
measured in 1 s. Consequently, it is convenient to judge whether [1] Andersson M, Persson L, Svensson T and Svanberg S 2007
a DLIA meets the response speed of the system by counting Flexible lock-in detection system based on synchronized
the number of output values in a second. The results in table 3 computer plug-in boards applied in sensitive gas
show that the traditional DLIA cannot meet the requirement spectroscopy Rev. Sci. Instrum. 78 113107
of modulation frequency (100 KHz) and measurement time, [2] Ripka P, Draxler K and Styblikova R 2013 Measurement of
DC Currents in the Power Grid by Current Transformer
while the proposed DLIA can meet both requirements by IEEE Trans. Magn. 49 73
using k ⩾ 3. Therefore, the modulation frequency of DLIA is [3] Bengtsson L E 2012 A microcontroller-based lock-in amplifier
improved greatly compared to traditional DLIA at the same ref- for sub-milliohm resistance measurements Rev. Sci.
erence frequency. Furthermore, the response speed of a DLIA Instrum. 83 075103
can be improved by increasing the value of k. Thus, the pro- [4] Barragán L A, Artigas J I, Alonso R and Villuendas F 2001 A
modular, low-cost, digital signal processor-based lock-in
posed algorithm can effectively improve the maximum modula- card for measuring optical attenuation Rev. Sci. Instrum.
tion frequency of an LIA in a real-time measuring system. 72 247
[5] Li G, Zhang S, Zhou M, Li Y and Lin L 2013 A method to
remove odd harmonic interferences in square wave reference
V. Conclusions digital lock-in amplifier Rev. Sci. Instrum. 84 025115
[6] Sonnaillon M O and Bonetto F J 2005 A low-cost, high-
performance, digital signal processor-based lock-in
In this paper, a new algorithm for a high-modulation frequency amplifier capable of measuring multiple frequency sweeps
and high-speed DLIA was proposed. The algorithm simplifies simultaneously Rev. Sci. Instrum. 76 024703
the orthogonal vector arithmetic in a DLIA because the multi- [7] Li G, Zhou M, He F and Lin L 2011 A novel algorithm
plication operation has been replaced completely by the addi- combining oversampling and digital lock-in amplifier of
tion and subtraction operations. Thus, the speed was improved high speed and precision Rev. Sci. Instrum. 82 095106
[8] Masciotti J M, Lasker J M and Hielscher A H 2008 Digital
remarkably. Furthermore, it also reduces the burden of general Lock-In Detection for Discriminating Multiple Modulation
microprocessor memory as the reference sequence does not Frequencies With High Accuracy and Computational
need to be saved. Finally, the novel algorithm improves the max- Efficieny IEEE Trans. Instrum. Meas. 57 182
imum modulation frequency of a lock-in because the frequency [9] Beta LaserMike, CapScan 2000 Drift-Free,
of the reference signal is lower than the modulation frequency. In-Process Capacitance Measurement Solution,
also in www. betalasermike.com/index.php/en/
However, this results in a reduction of the SNR by a factor of beta-lasermike-products-en/capacitance-en
(2k − 1). Further study is required to avoid this reduction. [10] Vaino O 1999 Minimum-phase FIR filters for delay-constrained
In a word, the novel DLIA is capable of high speed and high noise reduction IEEE Trans. Instrum. Meas. 48 1100–2
6