pyepr.hardware.dummy_xepr.dummy_api

class pyepr.hardware.dummy_xepr.dummy_api[source]

Bases: pyepr.hardware.XeprAPI_link.XeprAPILink

This class links to the Bruker Xepr API to control the spectrometer.

Parameters:
config_filestr, optional

Path to a PyEPR spectrometer configuration file, by default None

kwargsdict, optional

Additional keyword arguments:

  • retry_attempts (int): Number of times to retry getting a Xepr parameter before raising an exception. Default is 50.

Attributes

meta[source]

Methods

find_Xepr()[source]
is_exp_running()[source]
acquire_scan()[source]

This script detects the end of the scan and acquires the data set. This requires that the experiment is still running, or recently finished. Once it has been saved this will no longer work.

acquire_scan_at(scan_num)[source]

This script acquires the scan after a specific number of scans

Parameters:

scan_num (int)

acquire_scan_2d()[source]

This function acquires the dataset after a full 2D scan. This is done by identifying the number of scan steps per sweep and acquiring the data on that scan. This requires that the experiment has not been saved.

compile_PulseSpel_def()[source]
compile_PulseSpel_prg()[source]
set_PulseSpel_var(variable, value)[source]

This can be used to change any pulse spell variable whilst the experiment is running. These changes take effect at the beginning of the next scan

Parameters:
  • variable (str)

  • value (int)

run_exp()[source]

Runs the current experiment.

stop_exp()[source]

Stops the current experiment.

abort_exp()[source]

Aborts the current experiment.