SR560 Pre-amp module

Stanford Research Systems SR560 Pre-Amp

class place.plugins.sr560_preamp.sr560_preamp.SR560PreAmp(config, plotter)[source]

PLACE module for controlling the SRS SR560 pre-amplifier.

This module allows PLACE to set configuration options on the preamp at the start of an experiment. Currently, the module does not provide automation during an experiment. this module is a convenience only module designed to assist in recording the preamp setting used in an experiment.

It should also be noted that the preamp is configured only as a listening serial port, meaning that the instrument settings cannot be read back from the instrument. Therefore, in an automated experiment, PLACE has no way to verify that the desired settings are being registered by the instrument. Users are advised to adequately test the communication with the instrument before leaving PLACE to perform a large experiment.

config(metadata, total_updates)[source]

Configure the pre-amp.

The pre-amp is entirely configured at the beginning of the experiment. Due to the small number of configuration options, this module requires values be specified for all the options and no defaults are assumed.

Parameters:
  • metadata (dict) – metadata for the experiment
  • total_updates (int) – the number of update steps that will be in this experiment
update(update_number)[source]

Perform updates to the pre-amp during an experiment.

All settings are set during the config phase, so this method does not currently do anything.

Parameters:update_number (int) – the current update count
cleanup(abort=False)[source]

Cleanup the pre-amp.

Nothing to cleanup.

Parameters:abort (bool) – indicates the experiment is being aborted rather than having finished normally

Driver for accessing the features of the SR560 pre-amp

class place.plugins.sr560_preamp.sr560_driver.SR560Driver(serial_port)[source]

Class for lower level access to the pre-amp settings

set_blanking(blanked)[source]

Operates amplifier blanking

set_coupling(coupling)[source]

Sets input coupling

set_reserve(dynamic_reserve)[source]

Sets dynamic reserve

set_filter_mode(filter_mode)[source]

Sets filter mode

set_gain(gain)[source]

Sets the gain

set_highpass_filter(highpass_filter)[source]

Sets highpass filter frequency

set_lowpass_filter(lowpass_filter)[source]

Sets the lowpass filter frequency

set_signal_invert_sense(signal_invert_sense)[source]

Sets the signal invert sense

set_input_source(input_source)[source]

Sets the input source

set_vernier_gain_status(vernier_gain_status)[source]

Sets the vernier gain status

set_vernier_gain(vernier_gain)[source]

Sets to vernier gain

set_defaults()[source]

Set all default settings