autodeer.hardware.XeprAPI_link
¶
Module Contents¶
Classes¶
Attributes¶
- class autodeer.hardware.XeprAPI_link.XeprAPILink(config_file=None)[source]¶
- Parameters:
config_file (str)
- Parameters:
param_name (str)
- Parameters:
param_name (str)
- acquire_dataset(sequence=None)[source]¶
This function acquire the dataset, this work both for a running experiment or once it has finished.
- acquire_scan(sequence=None)[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, sequence=None)[source]¶
This script acquires the scan after a specific number of scans
- Parameters:
scan_num (int)
- acquire_scan_2d(sequence=None)[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.
- 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)
- set_Acquisition_mode(mode)[source]¶
mode=0: Run from tables, mode=1: Run from Pulse Spel, mode=2:Read transient, mode=3:Start Transient
- Parameters:
mode (int)
- xepr_save(path, title=None)[source]¶
_summary_
- Parameters:
- pathstr
_description_
- titlestr, optional
_description_, by default None
- Parameters:
path (str)
title (str)
- set_field(val, hold=True)[source]¶
Sets the magentic field.
- Parameters:
- valint
Field position in Gauss
- holdbool, optional
Wait until Xepr belives the field is stable, by default True
- Returns:
- int
Field position in Gauss
- Parameters:
val (int)
hold (bool)
- Return type:
int
- get_counterfreq()[source]¶
Gets the frequency counter value.
Note: There is no equivalent set command
- Returns:
- float
The counter frequency in GHz
- Return type:
float
- set_sweep_width(val)[source]¶
Sets the field sweep width
- Parameters:
- valint
Field sweep width in Gauss
- Returns:
- int
Field sweep width in Gauss
- Parameters:
val (int)
- Return type:
int
- get_sweep_width()[source]¶
Gets the field sweep width
- Returns:
- int
Field sweep width in Gauss.
- Return type:
int
- set_freq(val, pol=None, precision=False)[source]¶
Sets the current bridge frequency. The stepper motor value is calculated through a conversion.
- Parameters:
- valfloat
The frequency in GHz
- pollist, optional
Conversion polynomal coefficents for freq->Step, by default None
- Returns:
- float
Frequency in GHz
- Parameters:
val (float)
pol (list)
precision (bool)
- Return type:
float
- get_freq(pol=None)[source]¶
Gets the current bridge frequency. The frequency is calculated through a conversion.
- Parameters:
- pollist, optional
Conversion polynomal coefficents for freq->Step, by default None
- Returns:
- float
Frequency in GHz
- Parameters:
pol (list)
- Return type:
float
- get_spec_config()[source]¶
get_spec_config Gets the name of the current spectrometer configuration file.
- Returns:
- str
Returns the name of the current spectrometer configuration file
- Return type:
str
- get_ELDOR_freq()[source]¶
Gets the freuency of the ELDOR chnannel.
- Returns:
float: ELDOR frequency in GHz
- Return type:
float
- set_ELDOR_freq(value)[source]¶
Sets the freuency of the ELDOR chnannel.
- Args:
value (float): ELDOR frequency in GHz
- Returns:
float: ELDOR frequency in GHz
- Parameters:
value (float)
- Return type:
float
- set_video_gain(value)[source]¶
Set the video gain in dB
- Parameters:
- valueint
Video gain to be set in dB.
- Returns:
- int
The adjusted video gain
- Parameters:
value (int)
- Return type:
int
- get_config_file()[source]¶
Get the name of the spectrometer configuration file
- Returns:
- str
The name of the spectrometer configuration file
- Return type:
str
- set_config_file(config_file)[source]¶
Sets the name of the spectrometer configuration file. If the current configuration file is already correct, nothing changes.
- Parameters:
- config_filestr
The new configuration file name.
- Returns:
- str
The name of the spectrometer configuration file
- Parameters:
config_file (str)
- Return type:
str
- get_MW_amp()[source]¶
Gets the current setting of the microwave amplifier
- Returns:
- bool
current setting of the microwave amplifier
- Return type:
bool
- set_MW_amp(value)[source]¶
Sets the current setting of the microwave amplifier
- Parameters:
- valuebool
New setting of the microwave amplifier
- Returns:
- bool
Setting of the microwave amplifier
- Parameters:
value (bool)
- Return type:
bool