levylab.lockin¶
LabVIEW class: Instrument.Lockin.lvclass (auto-connected by CESession)
flex_drivers.levylab.lockin.Lockin
¶
Bases: ZMQInstrument
Multichannel lock-in amplifier (LevyLab Instrument Framework app).
get_ao(channel)
¶
Read the analog output configuration of channel.
get_ai(channel)
¶
Read the analog input of channel.
set_ao_function(channel, value)
¶
Set the AO waveform: Sine, Triangle, or Square.
set_sampling_mode(value)
¶
Set the sampling mode (IF method setSamplingFsMode).
set_sweep(sweep_config)
¶
Configure a sweep.
sweep_config format::
sweep_config = {"Sweep Time (s)": sweep_time,
"Initial Wait (s)": 2,
"Return to Start": False,
"Channels": [{"Enable?": True,
"Channel": channel,
"Start": start,
"End": stop,
"Pattern": "Ramp /",
"Table": []},
]}
set_ao(channel, value)
¶
Canonical DAQ capability alias: set the DC value of an AO channel.
get_lockin_result(channel, param, ref=1)
¶
Extract one value (e.g. X, Theta, Mean) from getResults.
lockin_sweep(sweep_config, timeout=10)
¶
Run a sweep and block until it finishes.
set_backgate(bg_channel, bg_target, sweep_rate, initial_wait=1, tol=0.001)
¶
Sweep the backgate voltage to a target value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bg_channel
|
int
|
Analog output channel used for the backgate. |
required |
bg_target
|
float
|
Target backgate voltage in volts (V). |
required |
sweep_rate
|
float
|
Sweep rate in seconds per volt (s/V). |
required |
initial_wait
|
float
|
Delay before starting the sweep in seconds. Default 1 s. |
1
|
tol
|
float
|
Voltage tolerance in volts used to determine whether the gate is already at the target voltage. Default 1e-3 V. |
0.001
|