DS345 function generator

Stanford Research Systems DS345 Function Generator

class place.plugins.ds345_function_gen.ds345_function_gen.DS345(config, plotter)[source]

PLACE module for reading data from the DS345 function generator.

Activating the function generator module will produce the following experimental metadata:

Key Type Meaning
DS345-output_amplitude float Output amplitude (in Vpp).
DS345-output_frequency float Output frequency (1 micro-Hz resolution).
DS345-sampling_frequency float Arbitrary wavesform sampling frequency.
DS345-output_function str Function type.
DS345-inversion_status str Inversion status (on/off).
DS345-DC_offset float Value of the DC offset.
DS345-output_phase float Waveform output phase.
DS345-burst_count int Burst count.
DS345-modulation_depth int Modulation depth.
DS345-span float Span value.
DS345-modulation_waveform str Modulation waveform.
DS345-modulation_enabled bool Whether modulation is enabled.
DS345-mark_freq_start float Sweep marker start frequency.
DS345-mark_freq_stop float Sweep marker stop frequency.
DS345-mark_freq_center float Sweep marker center frequency.
DS345-mark_freq_span float Sweep marker span frequency.
DS345-modulation_type str Modulation type.
DS345-phase_mod_span float Phase shift.
DS345-modulation_rate float Modulation rate.
DS345-sweep_span float Sweep span.
DS345-sweep_center float Sweep center frequency.
DS345-sweep_stop float Sweep stop freqency.
DS345-sweep_start float Sweep start frequency.
DS345-trigger_rate float Trigger rate.
DS345-trigger_source str Trigger source.
DS345-divider int Arbitrary modulation rate divider.
config(metadata, total_updates)[source]

PLACE module for reading data from the DS345 function generator.

Currently, this module is only designed to record the settings on the function generator.

Parameters:
  • metadata (dict) – metadata for the experiment
  • total_updates (int) – the number of update steps that will be in this experiment
update(update_number, progress)[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
  • progress (dict) – A blank dictionary that is sent to your Elm module
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