Zurich Instruments HF2LI exampleΒΆ
The Zurich Instruments HF2LI is a 50 MHz lock-in amplifier that contains essentially two independent signal generators and lock-in units.
A single instance of HF2LI
represents a single-channel lock-in amplifier, comprised of a single demodulator, a single excitation output (sigout), and whatever auxiliary outputs you want to use, e.g. (X, Y) or (R, Theta).
[ ]:
from qcodes_contrib_drivers.drivers.ZurichInstruments.HF2LI import HF2LI
[ ]:
devname = 'dev200' # device name according to the ZI software
demod = 0 # index of demodulator to use
sigout = 0 # index of sigout channel to use
auxouts = {'X': 0, 'Y': 3} # make this an empty dict if you don't want to use auxouts
lia = HF2LI('lia', devname, demod, sigout, auxouts)
[ ]:
lia.time_constant(1e-3) # s
lia.phase(0) #
lia.X() # in-phase component
lia.Y() # quadrature component
Make a second instance using different hardware channels of the same device.
[ ]:
demod1 = 3
sigout1 = 1
auxouts1 = {'R': 1, 'Theta': 2}
lia1 = HF2LI('lia1', devname, demod1, sigout1, auxouts1)
[ ]:
lia1.time_constant(1e-1) # s
lia1.phase(90) # degrees
lia1.frequency(19.9e3) # Hz
# set the excitation output amplitude to 100 mV
lia1.sigout_range(1.0)
lia.sigout_amplitude0(0.1)
output_amplitude = lia1.sigout_amplitude0() * lia1.sigout_range() # V
lia1.R() # magnitude
lia1.Theta() # phase