labdrivers.srs

class labdrivers.srs.sr830.Sr830(gpib_addr)[source]

Interface to a Stanford Research Systems 830 lock in amplifier.

amplitude

The amplitude of the voltage output.

auto_gain()[source]

Mimics pressing the Auto Gain button. Does nothing if the time constant is more than 1 second.

auto_offset(parameter)[source]

Automatically offsets the given voltage parameter.

Parameters:parameter – A string from [‘x’|’y’|’r’], case insensitive.
auto_phase()[source]

Mimics pressing the Auto Phase button.

auto_reserve()[source]

Mimics pressing the Auto Reserve button.

data_sample_rate

Data sample rate, which can be 62.5 mHz, 512 Hz, or Trigger.

Expected strings: 62.5, 62.5 mhz, 62.5mhz, mhz, 0, 512, 512hz, 512 hz, hz, 13, trig, trigger, 14.

data_scan_mode

Data scan mode, which is either a 1-shot or a loop.

Expected strings: 1-shot, 1 shot, 1shot, loop.

frequency

The frequency of the output signal.

get_display(channel)[source]

Get the display configuration of the amplifier.

Display options are: (for channel 1) (for channel 2)

0: X 0: Y 1: R 1: Theta 2: X Noise 2: Y Noise 3: Aux in 1 3: Aux in 3 4: Aux in 2 4: Aux in 4
Parameters:channel (int) – which channel to return the configuration for
Returns:the parameter being displayed by the amplifier
Return type:int
input

**The input on the SR830 machine. Possible values* – 0* – A 1: A-B 2: I (1 MOhm) 3: I (100 MOhm)

input_shield_grounding

Tells whether the shield is floating or grounded.

low_pass_filter_slope

The low pass filter slope in units of dB/octave. The choices are – i slope(dB/oct) — ————-

0 6 1 12 2 18 3 24
multiple_output(*values)[source]

Queries the SR830 for multiple output. See below for possibilities.

Possible parameters are:
1: X 2: Y 3: R 4: Theta 5: Aux in 1 6: Aux in 2 7: Aux in 3 8: Aux in 4 9: Reference frequency 10: CH1 display 11: CH2 display
Parameters:values – A variable number of arguments to obtain output
Returns:
pause_scan()[source]

Pauses a scan.

phase

The phase of the output relative to the input.

reserve

The reserve mode of the SR830.

reset_scan()[source]

Resets a scan and releases all stored data.

sensitivity

Voltage/current sensitivity for inputs.

set_display(channel, display, ratio=0)[source]

Set the display of the amplifier.

Display options are: (for channel 1) (for channel 2)

0: X 0: Y 1: R 1: Theta 2: X Noise 2: Y Noise 3: Aux in 1 3: Aux in 3 4: Aux in 2 4: Aux in 4
Ratio options are (i.e. divide output by):
0: none 0: none 1: Aux in 1 1: Aux in 3 2: Aux in 2 2: Aux in 4
Parameters:
  • channel (int) – which channel to modify (1 or 2)
  • display (int) – what to display
  • ratio (int, optional) – display the output as a ratio
single_output(value)[source]

Get the current value of a single parameter. Possible parameter values are:

1: X 2: Y 3: R 4: Theta
Returns:the value of the specified parameter
Return type:float
start_scan()[source]

Starts or continues a scan.

sync_filter

The state of the sync filter (< 200 Hz).

time_constant

The time constant of the SR830.

trigger()[source]

Sends a software trigger.

trigger_starts_scan

Determines if a Trigger starts scan mode.