pyepr.hardware.Bruker_MPFU.BrukerMPFU

class pyepr.hardware.Bruker_MPFU.BrukerMPFU(config_file)[source]

Bases: pyepr.hardware.BaseInterfaceClass.Interface

Represents the interface for connecting to MPFU based Bruker ELEXSYS-II Spectrometers.

An interface for connecting to MPFU based Bruker ELEXSYS-II Spectrometers.

Parameters:
config_filestr

The path to a YAML configuration file.

Attributes:
bg_thread: None or threading.Thread

If a background thread is needed, it is stored here.

Parameters:

config_file (str)

Attributes

api[source]
spec_config[source]
bridge_config[source]
MPFU[source]
temp_dir = b'.'[source]
d0[source]
bg_thread = None[source]
bg_data = None[source]
cur_exp = None[source]
tuning = False[source]
savename = ''[source]
savefolder = ''[source]
setup_flag = False[source]

Inherited from Interface: config, pulses, resonator, AWG

Methods

connect(d0=None)[source]
Return type:

None

setup(d0=None)[source]
acquire_dataset()[source]

Acquires the dataset.

launch(sequence, savename, start=True, tune=True, MPFU_overwrite=None, update_pulsespel=True, reset_bg_data=True, reset_cur_exp=True, attenuator=0, **kwargs)[source]

Launches the experiment and initialises autosaving.

Parameters:
sequenceSequence

The sequence to be launched

savenamestr

The savename for this measurement. A timestamp will be added to the value.

Parameters:
tune_rectpulse(*, tp, **kwargs)[source]

Mocks the tune_rectpulse command and returns a pair of RectPulses with the given tp and 2*tp respectively. No scale is set.

tune_pulse(pulse, *args, **kwargs)[source]

Mocks the tune_pulse command and returns the pulse unchanged.

tune(sequence, B0, freq)[source]
Return type:

None

isrunning()[source]
Return type:

bool

terminate(now=False)[source]

Terminates the experiment immediately.

Return type:

None

calc_d0()[source]

This creates an initial guess for d0. A better estimate can only be found after the field sweep.

calc_d0_from_Hahn_Echo(B=None, freq=None)[source]