Professional Documents
Culture Documents
Compact Embedded Device For Lock-In Measurements and Experiment Active Control - M Luda - J Codnia - Rev. Sci. Instrum
Compact Embedded Device For Lock-In Measurements and Experiment Active Control - M Luda - J Codnia - Rev. Sci. Instrum
org/journal/rsi
Scientific Instruments
Marcelo Alejandro Luda,1,a) Martin Drechsler,2 Christian Tomás Schmiegelow,2 and Jorge Codnia1
AFFILIATIONS
1
CEILAP, CITEDEF, J. B. de La Salle 4397, 1603 Villa Martelli, Buenos Aires, Argentina
2
Departamento de Física and IFIBA, FCEyN, UBA, Pabellón 1, Ciudad Universitaria, 1428 Buenos Aires, Argentina
a)
mluda@citedef.gob.ar
ABSTRACT
We present a multi-purpose toolkit for digital processing, acquisition, and feedback control designed for physics labs. The kit
provides in a compact device the functionalities of several instruments: function generator, oscilloscope, lock-in amplifier,
proportional-integral-derivative filters, ramp scan generator, and a lock-control. The design combines field-programmable-
gate-array processing and microprocessor programing to get precision, ease of use, and versatility. It can be remotely operated
through the network with different levels of control: from simple off-the-shelf Web graphical user interface to remote script
control or in-device programmed operation. Three example applications are presented in this work on laser spectroscopy and
laser locking experiments. The examples include side-fringe locking, peak locking through lock-in demodulation, and complete
in-device Pound–Drever–Hall modulation and demodulation at 31.25 MHz and advanced acquisition examples like real-time data
streaming for remote storage.
Published under license by AIP Publishing. https://doi.org/10.1063/1.5080345
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-1
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
This way, the FPGA can handle time sensitive functions often spectroscopy scheme, in Sec. III B, using lock-in phase sen-
also in parallel, while the microprocessor provides the user sitive acquisition to lock laser emission frequency to spec-
higher level functions and control in an on-site configurable tral peak maximum. Finally, we present a Pound–Drever–Hall
manner. locking scheme for another ECDL, in Sec. III C. One of the
Embedded devices with FPGAs and microprocessors were goals of this proposal is the lock-in operation at 31 MHz,
successfully used to achieve similar tasks as we show here.5,6 enabling the implementation of the complete lock-in modula-
However they were developed in the framework of propri- tion and demodulation scheme in only one device, something
etary, platform-dependent software that limits the available which has never been reported so far.
tools for developing custom solutions and modifications. An
open-source system and an open-hardware solution have also II. SYSTEM DESIGN
been presented with a servo and loop-back control system in
pure FPGA for an atomic, molecular, and optical (AMO) labora- The toolkit is based on a commercial system on chip
tory.7 Finally, we note that another toolkit with open-source (SOC) device known as Red Pitaya v1.1 (STEMLab 125-14) with
software and based on the same hardware we use has been a Xilinx Zynq 7010 integrated circuit core, which includes
presented in a recent study.8 The project provides similar an FPGA and a dual core ARM Cortex-A9 processor, inte-
hardware features to the ones present in our work. The main grated to peripherals suitable for signal acquisition and gen-
difference is in the control environment graphical user inter- eration (fast ADCs, DACs, DIOs, and communication ports).
face (GUI) which is Python based instead of a web server as we The device operation follows a client-server architecture that
use here. can be thought as a layer structure. The client side is the user
In this work, we present a versatile general purpose front-end running on a client’s own device. The server side
toolkit for system control instrumentation built on a FPGA is the STEMLab device, including the operating system, pro-
and microprocessor embedded device that is ready for sim- grammable electronics, and hardware peripherals. The layers
ple off-the-shelf usage and also for high complex integrated can be controlled on different levels depending on the user’s
schemes of acquisition and control. The hardware is based on requirements. In the following, we describe possible applica-
a Red Pitaya STEMLab 125-149 board, which makes it a com- tion strategies and the layer architecture, both depicted in
pact solution with a credit card size that can be acquired on Fig. 1.
web store. The FPGA and software design is all open-source
and can be accessed through a web repository.10 The toolkit A. User strategy
includes an oscilloscope, a ramp/scan controller, two lock-in We present here three different user strategies with
amplifiers, modulation generators, PID filters, and an overall growing complexity and versatility. Depending on the needs,
control module which includes automatic locking, lock-watch, a user can choose from simple pre-defined working modes
and re-lock. A big difference with previous implementations to modifying instrument cabling or programming complex
is the availability of a lock-in module which works with fre- measurement and feedback routines.
quencies up to 31 MHz. All stages of the high frequency lock-in The “GUI predefined operation” option allows us to per-
are implemented in the Red Pitaya module without the use of form most of the tasks described here from a web browser in
any extra components. We show an example of this feature for the user device. The front-end is part of the client-side and
frequency stabilization of a laser using the Pound-Drever-Hall is built over the HTML+JS page and presents a friendly inter-
technique. face for several instruments’ operation: two lock-in amplifiers,
This device works as a stand-alone device that can be two PID loops with different locking and re-locking routines,
remotely controlled through Ethernet-TCP/IP network con- an on-screen oscilloscope, and cabling between them. These
nection via a web-based interface and is therefore platform allow us to perform a wide variety of measurement and con-
independent. Moreover, one can log into the embedded oper- trol tasks which we describe in detail in Sec. III, with sev-
ating system via SSH protocol and set operation parameters eral examples which include low and high frequency lock-in
through a communication bus to the FPGA, enabling differ- measurements and active stabilization of lasers.
ent types of usage going from predefined easy configuration An even greater versatility can be achieved via the
to low level user-defined programed control. “Programed and remote acquisition and control” option. All
The present report is divided in two parts. In the first the instruments can be remote controlled and data can be
part, we describe the toolkit hardware, software, and usage. acquired through user commands, enabling the possibility of
We describe the user strategy options and the toolkit design incorporating them to algorithms designed by the user in var-
in Sec. II A, the architecture organized in layers in Sec. II B, and ious programming languages. An example code can be found
the usage logic organized in “instruments” in Sec. II C. in the project repository10 for Python and Matlab, including
In the second part, the toolkit is tested in several exam- two channel oscilloscope acquisition, on-demand multichan-
ple applications in an AMO physics laboratory. We show a nel reading of several signal values and instruments’ operation
rubidium absorption spectroscopy scheme in Sec. III A, with by writing control register values.
a Vertical-Cavity Surface-Emitting Laser (VCSEL), using the The user commands are Python scripts executed in the
toolkit for acquisition of transmission signal and for side- Red Pitaya shell that implement the basic procedures for
fringe locking stabilization. Then we use an External Cav- reading and writing RAM addresses’ values linked to FPGA
ity Diode Laser (ECDL) to implement a saturated absorption registers. The remote execution can be performed by any
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-2
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
FIG. 1. Design of the client-server architecture. The toolkit is organized in a layer structured way. The elements are grouped horizontally by site and type. As indicated in
the right-hand-side column, system layers are organized in increasing levels of complexity: welded electronics, programmable electronics, operating system, and front end.
The dashed line separates the client part (end-user device) and the server part (STEMLab device). The horizontal and vertical blue arrows show communication between
elements. There are three possible user strategies indicated by colored columns (red, yellow, and green). The first (red) column follows the Red Pitaya STEMLab original
design philosophy. Here operation is controlled from the graphical user interface (GUI). The next two columns show more advanced operation where the system is remotely
controlled (yellow) or where resident programs do automated acquisition and signal processing (green).
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-3
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
microprocessor and “Welded electronics layer” through spe- implementing filters and control loops. The base modules
cialized data buses. include function generators, ramp generators, multipliers,
The FPGA design was made with simplicity in mind, to demodulators, low-pass filters, multiplexers, etc.
ease the user understanding of the electronic logic. Also, The control registers can be set and read from the Red
the implementation was made trying to prioritize direct wire Pitaya local shell, from remote software, or from the applica-
processing, reducing the usage of registers in the middle of tion Web GUI. The last one includes user friendly options for
input-output signal flow. This decision was taken because operation, described in more detail in Sec. II D.
each register adds a clock period delay (8 ns) to the data flow. A set of buses and multiplexers allow the interconnec-
Closed-loop control schemes are bandwidth limited by this tion of the different instruments. The buses transport the ADC
delay value.1 The achieved delay for device input-output using input signals and the instruments’ output signals. The multi-
one PID filter was 130 ns, which imposes a theoretical limit to plexers are controlled by the user through register values to
the feedback bandwidth of 3.8 MHz. choose the instruments’ inputs or the DAC output signals. In
The “Operating system layer” stores the back-end logic this way, several instruments can be combined into a system
that controls the operation of the digital circuits. It runs with dedicated purpose, such as lock-in demodulation and PID
a GNU/Linux operating system with a set of RAM memory control for stabilization schemes.
addresses mapped to FPGA registers that are used by the The core design of the instruments is described in this
instruments’ circuits to set their configurations or store data. section, and usage information is documented in the project
The back-end logic reads and writes these registers and makes web page.12
some data conditioning, like conversion from FPGA integer-
raw data to end-user float-voltage data values. This logic is
1. The lock-in amplifiers
implemented in the API (programmed in Python) and also in
the Nginx web server (programmed in a C extension module). Two lock-in amplifiers were implemented to cover differ-
The web server provides the client access and control from ent kinds of applications: a “standard” harmonic lock-in, with a
the user web browser, exchanging data using the JSON stan- frequency range that goes from 3 Hz to 49.6 kHz, and a square
dard format and HTTP/POST protocol. The API is used by the wave lock-in with a wider frequency range, from 30 mHz to
user commands introduced in Sec. II A. 31 MHz.
The “User Front-end” layer is only provided for the “GUI Figure 2 shows the scheme of the FPGA implementation
predefined operation” strategy, and it consists of a dynamic logic of a lock-in demodulation path. The input signal signal_i
web page loaded in the client device. The data acquired in the is multiplied by a local oscillator refi signal that settles the
FPGA layer, and conditioned in the back-end layer, are shown frequency and phase reference and then is filtered by using
here in an intuitive way, as can be seen in Fig. 6. a low pass filter (LPF) with a cut-off frequency of fcuti . The
LPF output out27i is a 27 bit signed int register which is avail-
C. The instruments able for recoding measurements and which can be monitored
via the Web GUI. A bus-trim applied to the register reduces
The functionalities of the toolkit have been organized
it to a 14 bit signal out14i . The selection of the trimmed bits
in logical units called “instruments,” which allow the user to
has the net effect of an amplifier by powers of 2, controlled by
interact with it. Each instrument provides some of the func-
the ampi parameter. This 14 bit signal can then be connected
tionalities of typical laboratory equipment used for acqui-
to either the PIDs, the output DACs, or the oscilloscope input
sition and control. The instruments implemented are the
channels.
following:
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-4
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
TABLE I. Register name reference for lock-in demodulation paths. The columns represent the control parameters depicted in Fig. 2 with generic names. Each row shows the
actual register names for each demodulation path. The 1–5 paths are part of the harmonic lock-in, and the 6–8 paths are part of the square wave lock-in. Some registers are
shared between several demodulation paths.
i refi Signal equation fcuti name orderi name ampi name out27i name out14i name
The harmonic lock-in is composed of five demodulation set with a resolution of 16 ns, starting from 32 ns (31.25 MHz)
paths like that depicted in Fig. 2. Each path has its own refi and expanding the possible values up to 68 s. The ϕ phase
signal and bus names, as shown in Table I, which can be used relation is set as an integer factor of 8 ns. Both parameters,
in the application for DAC outputs or oscilloscope visualiza- period and phase, are set by 32 bit unsigned integer reg-
tion. The cos_ref and sin_ref paths have their reference in isters. The maximum frequency is ultimately limited by the
quadrature, so the X and Y outputs provide the full phase and clock period of 8 ns. The lower limit could be increased, if
amplitude information of the signal_i filtered frequency com- needed, by expanding the size of the registers. The multi-
ponent. The other three paths allow setting a fixed phase rela- pliers of these paths are modified to map the binary input
tion with respect to cos_ref and also obtaining information from 0, 1 values to ±1. The sq_ref binary signal is available
about the first (2f) and second (3f) harmonics. The φ param- in one of the fast binary outputs of the extension pins of
eter, which can be configured through the Web GUI phase the STEMLab device, and all the signals can be used on the
phase
control, sets a phase displacement of φ = 2π 2520 . DAC outputs, where they are mapped from the binary values
Each local oscillator signal is made from 2520 signed inte- to ±0.5 V.
ger values proportional to a sine period. They are stored in a The out27 register enables lock-in measurements with a
memory module implemented as various lookup tables. The full resolution of 27 bits and a sensitivity of 59.6 µV. The sen-
reading addresses for the memory modules are set by counter sitivity can be enhanced with pre-amplification, as is shown in
modules, driven by a configurable clock divider that allows us the experience described in Sec. III B.
to change the reading sample rate and, with it, the resulting
2. PID controllers
refi working frequency. The cos_ref, sin_ref, cos2f, and cos3f
signals were designed to satisfy the discrete Fourier orthog- Two PID modules were implemented for use in feed-
onality relations of Eq. (1), which avoid offsets generated by back stabilization schemes. The circuit design is based on
digital rounding, and are important not only for measurement the PID included in the free software applications of the
precision but also useful for reducing instrumentation induced Red Pitaya community.11 They were modified to extend the
instabilities in a feedback stabilization scheme. This condition working parameter range over several orders of magnitude,
is not satisfied if we use signals built from real valued cos func- by incorporating scale registers. The output control was
tions discretized with global criteria applied to all the values enhanced by adding features like output value freezing and
(like using standard integer conversion functions: floor, ceil, integrator memory freezing, useful for re-lock routines (see
or round), Sec. II C 4).
cos Both modules have a common error signal as default
2519 input, which can be selected from different input buses, as is
sin
f[i] · g[i] = 0 for f g and f, g =
. (1) shown in Fig. 3. The input can be shifted by a user-controlled
cos2f
i=0
cos3f error_offset value that can be interpreted as a working set-
point. Also, independent input signals for each module can be
The square wave lock-in is composed of three demodula- chosen (not shown in the figure).
tion paths: 6-8 from Table I. Two local oscillators in quadrature Each module implements three filters, proportional, inte-
(sq_ref and sq_quad) allow the acquisition of the complete gral, and derivative, which sums up to build the output signal
quadrature information in the sqX and sqY registers. Also, pidX_out (X = A, B), as it is shown in Fig. 3. The summed result
another oscillator path, sq_phas, with a configurable phase is stored in a register which allows us to freeze the value at
relation is available, with the output value stored in sqF. command.
The square wave signals are built on run-time, switch- The behavior of the three filters depends on the value of
ing a bit that represents the ±1 values. The working frequency three parameters: kp , ki = 1 /τi , and kd = τ d . Two registers allow
f sq is set by defining the semi-period time length, counting the user to control each of them: one 14 bit signed int value
steps of the base FPGA clock. In this way, the period can be changes the parameter linearly, while the second value allows
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-5
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-6
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
waveforms. This design has been proven to be helpful when procedure was inspired on a recent study7 and consists on
using the ramp instrument for optical spectroscopy. freezing the PIDs and starting a ramp scan increasing the scan
The ramp generator has extra functionality: it can be limits on a two factor in each half period. If during scanning
started and stopped at any time with the ramp_enable reg- the system reaches a lock condition, the submodule stops the
ister, it can be reset to the ramp_A = 0 value with the scan and turns on the PIDs again. If the lock condition is never
ramp_reset register, and its starting slope sign can be set with met, the submodule will continue increasing the scan ampli-
the ramp_direction register. Also, as will be discussed later, tude until it makes a semi-period sweep with the longest width
the lock-control module can take control of the start/stop (1 V ≡ 8192 int) and then will stop ramp.
command and the ramp limits for locking and re-locking Finally, a submodule which carries out a Step Response
procedures. Measurement allows the user to evaluate the system response
to an abrupt change in the control value. This information can
4. Lock-control then be used to calibrate the parameters of the PID modules.
A device meant for locking to a given error signal
requires switching between different behaviors: scanning, 5. Oscilloscope
locking, re-locking on events, etc. Changing from one state The oscilloscope instrument is a modified version of
to the other requires timed interaction between the previ- Scope Application from Free Software Red Pitaya developers
ous modules. This interaction is handled by the lock-control community.11 It is composed of two memory arrays with a
module. Figure 5 shows the schematic inter-cabling of the length of 16 384 for storing 14 bit signed int values, modules for
modules. triggering, decimation control, and anti-aliasing filters, and it
A typical example of this behavior is what we call Trigger allows us to make acquisitions on the FPGA clock sample rate
Lock. Here the system switches from a scan-mode, where one (125 MSa/s). Here we extended the functionality of the basic
can see the error signal by sweeping the control parameter, to oscilloscope to allow the display of various internal and exter-
a lock-mode where the scan is turned off and the PIDs are nal signals. These include the ADC inputs (in1, in2), instrument
turned on to stabilize the error signal. That is, on a trigger outputs (PIDs and ramp), important link buses (error, ctrl_A,
event, the ramp’s outputs are frozen and the PID’s outputs are ctrl_B), and all the lock-in path outputs and local oscillators.
enabled. The trigger can be set to a given value of the ramp With this extension, the oscilloscope is useful not only for
period (time trigger), a given value of the signal (level trigger), external data acquisition but also for internal data flow and
or the fulfillment of both conditions (level + time trigger). processing inspection, essential for debugging and tuning the
The values for these triggers can be selected graphically on parameters of each module.
the oscilloscope screen or manually. Alternatively one could Also, some acquisition options were added. We included
set lock-control parameters using user defined algorithms to the possibility to disable the anti-aliasing FPGA module fil-
automatically scan a signal and lock to given peak. ter and to incorporate more triggers from useful signals. The
The module also provides a Re-lock routine which tries external trigger is extended for the user selectable event list,
to automatically re-lock on eligible events. This submodule including out-of-lock, triggered lock-start, ramp_A at limit
will consider that the system is out-of-lock when the abso- reach, and lock-in oscillator period start. Also, some web GUI
lute value of the error signal exceeds a set value or when one options were added, like an R-φ (absolute and phase) run-
of the inputs (in1, in2, in1 − in2, or any lock-in demodulated time calculation option for lock-in X, Y and sqX, sqY visu-
signals) drops below a set threshold. When any of these con- alization and switch between volts and int units. By default,
ditions is met the re-locking routine is started. The re-locking the acquired curve values are expressed in volts, using the
ADC/DAC conversion factor (signed 14 bits int resolution):
8192 int ≡ 1 V. This can be switched to raw int values.
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-7
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
FIG. 6. Web page GUI front-end showing a rubidium absorption and saturated absorption signal. The display is organized in three columns with sub-panels. The left
one contains one panel per instrument containing their configuration options. The right one contains the oscilloscope visualization options. The middle one contains the
oscilloscope screen and a bottom panel showing the lock-in output values.
the circuits will use and includes text displays that translates with only one control parameter. In the third one (Sec. III C),
these values to the physical magnitudes involved (i.e., seconds we show the square lock-in amplifier working at 31 MHz for a
and volts). Pound-Drever-Hall stabilization application. Some advanced
The oscilloscope screen is in the middle of the page. It capabilities are shown here, like multiple controlled vari-
displays two channels for plotting user selected signals. In the ables, in-device programing for special measurements, and
sample applications discussed below, in Sec. III, one channel different hardware implementations of the same stabilization
shows the spectral response of the system, while the other scheme. Finally, we discuss some potential applications of the
displays the error signal. This provides a fast way to view and toolkit.
evaluate the performance of the system on lock, entering a
lock, and re-locking.
A. Absorption spectroscopy: Ramp, oscilloscope,
and PIDs
III. EXAMPLE APPLICATIONS We tested the off-the-shelf capabilities of the toolkit in an
We report a set of experimental applications of the toolkit atomic vapor absorption spectroscopy experiment with rubid-
presented in order of complexity to show the instruments’ ium. A tunable laser that goes across an atomic vapor cell
usability and potential. In the first one (Sec. III A), we intro- is used to make an optic-frequency scan around one of the
duce the usage of the ramp and the oscilloscope to take the atomic electronic transitions. A photodiode is used to mea-
absorption spectrum of an atomic vapor, with a simple scheme sure the intensity decay at the cell output (Fig. 7), as a result
of one control parameter and one measured variable. Also, we of the absorption on transition resonance. We used a VCSEL,
implement a side-of-fringe locking scheme using a PID con- what ensures mode-hop-free scanning using only one control
troller and the lock control instrument. In the second appli- parameter: the diode current.13 The laser wavelength is cen-
cation (Sec. III B), we add the harmonic lock-in amplifier to tered in 795 nm, suitable for rubidium D1 line (52 S1/2 → 52 P1/2 )
the measure and stabilization scheme, in a saturated absorp- spectroscopy.
tion experiment. We used two output ports and measure two The ramp instrument was used to make the frequency
input variables, in a multi-input-output control system but scan, by performing a voltage-controlled sweep of the current
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-8
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-9
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
FIG. 10. Relevant signals for a saturated absorption spectroscopy open-loop scan (blue) and a triggered closed-loop stabilization event (orange). in2 is the saturated
absorption signal sensed by the photodiode. The laser is scanned across a Doppler-broadened absorption line. At times −3.6 s and 1.2 s, the scan changes the direction.
The positive peaks seen are the expected saturated absorption spectral lines. in1 is similar to in2 but has been DC-decoupled and amplified (see Fig. 7). This is the signal
used for lock-in demodulation. F1o and F3o are the demodulated signals at 1f and 3f, respectively. ctrl_A is the control signal acting on the laser wavelength. The demodulated
signals show the first and third derivative-like behavior, with zero-crossing points on the peaks seen in in2. For locking the laser to a line, the F3o was used as the error signal.
The red line shows the level threshold where the lock-start triggers. The right hand side axis indicates a voltage scale of each signal as expected on the photodiode output
before amplification and on the Red Pitaya’s output.
with ctrl_A. The sub-Doppler hyperfine transition peaks and available for visualization and acquisition. The first three of
the crossover14 peaks were marked with vertical gray lines. them are proportional to the first derivative of the transmitted
For the stabilization of the emission frequency, a lock- signal in2 (at the first order of modulation depth17 ), and the
in scheme was implemented, to get an error signal suitable last two are proportional to the second and third derivatives,
for peak maximum locking, and demodulated from the sig- respectively. The odd derivatives expose in2 minimum and
nal sensed by the photodiode. A harmonic modulation cos_ref maximum as zero crossing points. This characteristic makes
was introduced through the current driver. them suitable as an error signal for min/max peak locking.
Two fast inputs and two fast outputs were used in this In Fig. 10, the F1o and F3o signals are shown. The F3o is not
scheme (Fig. 9). The in2 port was used for direct photodiode sensible to first derivative offsets, like the linear power incre-
signal digitalization, to measure the transmitted laser inten- ment of the current sweep, and less sensible to peak base line
sity. The in1 port was used to measure AC components of contributions that shift the minimum/maximum positions of
the photodiode signal, using an analog high pass filter and the transmitted signal with respect to ideal ones, which is why
amplifier, what allows us to improve the sensitivity of lock-in it was selected as the error signal for the PID input. The filter
demodulation. The acquisition was made using the oscillo- was configured with a proportional component with constant
scope instrument, registering the transmitted intensity and kp = 1.56 × 10−2 , for fast corrections, and an integral compo-
the demodulated signal. The ctrl_A signal on the out1 port nent with constant ki = 5.59 s−1 . The lock-control instrument
was used to control the laser frequency. The ramp instru- was configured to trigger the loop-close event whenever F3o
ment was used for frequency scanning and PID for frequency gets over 2048 int (red line), with the “level trigger.” An exam-
stabilization, through feedback loop. The current and PZT ple of lock start is presented in Fig. 10, with an orange line
sweep amplitudes were tuned through driver hardware. The superimposed to the normal scan signal. In this example, a
out2 port was used to produce the modulation of the laser stability of 226(13) kHz of the optical frequency was achieved
current. after lock, on a 10 min measurement. The frequency deviation
The harmonic lock-in was configured to demodulate the was estimated from F3o standard deviation and the knowl-
in1 signal. Demodulated signals Xo, Yo, F1o, F2o, and F3o were edge of the F3o slope on the locked peak position.18 The
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-10
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-11
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
signal and two PIDs, one for each ctrl signal. The PID for the
current setup used proportional and integral terms, while
PZT PID only used the integral term, avoiding undesired fast
corrections over the piezoelectric line. The sample trans-
mitted and error signal are presented in Fig. 12 for one FP
transmission peak, showing the characteristic PDH pattern.19
Next, we will present two advanced usage cases of
the toolkit for continuous data acquisition and re-lock
procedures.
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-12
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-13
Published under license by AIP Publishing
Review of ARTICLE scitation.org/journal/rsi
Scientific Instruments
16 19
T. Führer and T. Walther, Opt. Lett. 33, 372 (2008). R. W. P. Drever, J. L. Hall, F. V. Kowalski, J. Hough, G. M. Ford, A. J. Munley,
17 and H. Ward, Appl. Phys. B: Photophys. Laser Chem. 31, 97 (1983); e-print
W. Demtröder, in Laser Spectroscopy, 3rd ed. (Springer Berlin Heidelberg,
Berlin, Heidelberg, 2008), Chap. 6, pp. 7–10. arXiv:1602.03504.
18 20
M. Luda and J. Codnia, Opt. Pura Apl. 51, 49031:1 (2018). J. R. V. (Chairman), IEEE Standard 1139, 1999, p. 36.
Rev. Sci. Instrum. 90, 023106 (2019); doi: 10.1063/1.5080345 90, 023106-14
Published under license by AIP Publishing