pyepr.hardware.dummy_xepr.dummy_api¶
- class pyepr.hardware.dummy_xepr.dummy_api¶
Bases:
pyepr.hardware.XeprAPI_link.XeprAPILinkThis class links to the Bruker Xepr API to control the spectrometer. Parameters ———- config_file : str, 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.
- _tmp_dir = None¶
- meta¶
- find_Xepr()¶
- is_exp_running()¶
- acquire_scan()¶
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)¶
This script acquires the scan after a specific number of scans
- Parameters:
scan_num (int)
- acquire_scan_2d()¶
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()¶
- compile_PulseSpel_prg()¶
- set_PulseSpel_var(variable, value)¶
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()¶
Runs the current experiment.
- stop_exp()¶
Stops the current experiment.
- abort_exp()¶
Aborts the current experiment.