|
Qudi
|
This is the Logic class for ODMR. More...


Public Member Functions | |
| def | __init__ (self, config, kwargs) |
| def | on_activate (self) |
| Initialisation performed during activation of the module. | |
| def | on_deactivate (self) |
| Deinitialisation performed during deactivation of the module. | |
| def | sv_set_fits (self, val) |
| def | sv_get_fits (self, val) |
| save configured fits | |
| def | set_trigger (self, trigger_pol, frequency) |
| Set trigger polarity of external microwave trigger (for list and sweep mode). More... | |
| def | set_average_length (self, lines_to_average) |
| Sets the number of lines to average for the sum of the data. More... | |
| def | set_clock_frequency (self, clock_frequency) |
| Sets the frequency of the counter clock. More... | |
| def | set_matrix_line_number (self, number_of_lines) |
| Sets the number of lines in the ODMR matrix. More... | |
| def | set_runtime (self, runtime) |
| Sets the runtime for ODMR measurement. More... | |
| def | set_cw_parameters (self, frequency, power) |
| Set the desired new cw mode parameters. More... | |
| def | set_sweep_parameters (self, start, stop, step, power) |
| Set the desired frequency parameters for list and sweep mode. More... | |
| def | mw_cw_on (self) |
| Switching on the mw source in cw mode. More... | |
| def | mw_sweep_on (self) |
| Switching on the mw source in list/sweep mode. More... | |
| def | reset_sweep (self) |
| Resets the list/sweep mode of the microwave source to the first frequency step. | |
| def | mw_off (self) |
| Switching off the MW source. More... | |
| def | start_odmr_scan (self) |
| Starting an ODMR scan. More... | |
| def | continue_odmr_scan (self) |
| Continue ODMR scan. More... | |
| def | stop_odmr_scan (self) |
| Stop the ODMR scan. More... | |
| def | clear_odmr_data (self) |
| ¨Set the option to clear the curret ODMR data. More... | |
| def | get_odmr_channels (self) |
| def | get_hw_constraints (self) |
| Return the names of all ocnfigured fit functions. More... | |
| def | get_fit_functions (self) |
| Return the hardware constraints/limits. More... | |
| def | do_fit (self, fit_function=None, x_data=None, y_data=None, channel_index=0) |
| Execute the currently configured fit on the measurement data. More... | |
| def | save_odmr_data (self, tag=None, colorscale_range=None, percentile_range=None) |
| Saves the current ODMR data to a file. More... | |
| def | draw_figure (self, channel_number, cbar_range=None, percentile_range=None) |
| Draw the summary figure to save with the data. More... | |
| def | perform_odmr_measurement (self, freq_start, freq_step, freq_stop, power, runtime, fit_function='No Fit', save_after_meas=True, name_tag='') |
| An independant method, which can be called by a task with the proper input values to perform an odmr measurement. More... | |
Public Attributes | |
| threadlock | |
| mw_trigger_pol | |
| elapsed_time | |
| elapsed_sweeps | |
| odmr_raw_data | |
| odmr_plot_x | |
| odmr_plot_y | |
| odmr_fit_x | |
| odmr_fit_y | |
| odmr_plot_xy | |
| stopRequested | |
Static Public Attributes | |
| odmrcounter = Connector(interface='ODMRCounterInterface') | |
| fitlogic = Connector(interface='FitLogic') | |
| microwave1 = Connector(interface='mwsourceinterface') | |
| savelogic = Connector(interface='SaveLogic') | |
| taskrunner = Connector(interface='TaskRunner') | |
| mw_scanmode | |
| clock_frequency = StatusVar('clock_frequency', 200) | |
| cw_mw_frequency = StatusVar('cw_mw_frequency', 2870e6) | |
| cw_mw_power = StatusVar('cw_mw_power', -30) | |
| sweep_mw_power = StatusVar('sweep_mw_power', -30) | |
| mw_start = StatusVar('mw_start', 2800e6) | |
| mw_stop = StatusVar('mw_stop', 2950e6) | |
| mw_step = StatusVar('mw_step', 2e6) | |
| run_time = StatusVar('run_time', 60) | |
| number_of_lines = StatusVar('number_of_lines', 50) | |
| fc = StatusVar('fits', None) | |
| lines_to_average = StatusVar('lines_to_average', 0) | |
| sigNextLine = QtCore.Signal() | |
| sigParameterUpdated = QtCore.Signal(dict) | |
| sigOutputStateUpdated = QtCore.Signal(str, bool) | |
| sigOdmrPlotsUpdated = QtCore.Signal(np.ndarray, np.ndarray, np.ndarray) | |
| sigOdmrFitUpdated = QtCore.Signal(np.ndarray, np.ndarray, dict, str) | |
| sigOdmrElapsedTimeUpdated = QtCore.Signal(float, int) | |
This is the Logic class for ODMR.
| def odmr_logic.ODMRLogic.clear_odmr_data | ( | self | ) |
¨Set the option to clear the curret ODMR data.
The clear operation has to be performed within the method _scan_odmr_line. This method just sets the flag for that.
| def odmr_logic.ODMRLogic.continue_odmr_scan | ( | self | ) |
Continue ODMR scan.
| def odmr_logic.ODMRLogic.do_fit | ( | self, | |
fit_function = None, |
|||
x_data = None, |
|||
y_data = None, |
|||
channel_index = 0 |
|||
| ) |
Execute the currently configured fit on the measurement data.
Optionally on passed data
| def odmr_logic.ODMRLogic.draw_figure | ( | self, | |
| channel_number, | |||
cbar_range = None, |
|||
percentile_range = None |
|||
| ) |
Draw the summary figure to save with the data.
| def odmr_logic.ODMRLogic.get_fit_functions | ( | self | ) |
Return the hardware constraints/limits.
| def odmr_logic.ODMRLogic.get_hw_constraints | ( | self | ) |
Return the names of all ocnfigured fit functions.
| def odmr_logic.ODMRLogic.mw_cw_on | ( | self | ) |
Switching on the mw source in cw mode.
| def odmr_logic.ODMRLogic.mw_off | ( | self | ) |
Switching off the MW source.
| def odmr_logic.ODMRLogic.mw_sweep_on | ( | self | ) |
Switching on the mw source in list/sweep mode.
| def odmr_logic.ODMRLogic.perform_odmr_measurement | ( | self, | |
| freq_start, | |||
| freq_step, | |||
| freq_stop, | |||
| power, | |||
| runtime, | |||
fit_function = 'No Fit', |
|||
save_after_meas = True, |
|||
name_tag = '' |
|||
| ) |
An independant method, which can be called by a task with the proper input values to perform an odmr measurement.
| def odmr_logic.ODMRLogic.save_odmr_data | ( | self, | |
tag = None, |
|||
colorscale_range = None, |
|||
percentile_range = None |
|||
| ) |
Saves the current ODMR data to a file.
| def odmr_logic.ODMRLogic.set_average_length | ( | self, | |
| lines_to_average | |||
| ) |
Sets the number of lines to average for the sum of the data.
| int | lines_to_average: desired number of lines to average (0 means all) |
| def odmr_logic.ODMRLogic.set_clock_frequency | ( | self, | |
| clock_frequency | |||
| ) |
Sets the frequency of the counter clock.
| int | clock_frequency: desired frequency of the clock |
| def odmr_logic.ODMRLogic.set_cw_parameters | ( | self, | |
| frequency, | |||
| power | |||
| ) |
Set the desired new cw mode parameters.
| float | frequency: frequency to set in Hz |
| float | power: power to set in dBm |
| def odmr_logic.ODMRLogic.set_matrix_line_number | ( | self, | |
| number_of_lines | |||
| ) |
Sets the number of lines in the ODMR matrix.
| int | number_of_lines: desired number of matrix lines |
| def odmr_logic.ODMRLogic.set_runtime | ( | self, | |
| runtime | |||
| ) |
Sets the runtime for ODMR measurement.
| float | runtime: desired runtime in seconds |
| def odmr_logic.ODMRLogic.set_sweep_parameters | ( | self, | |
| start, | |||
| stop, | |||
| step, | |||
| power | |||
| ) |
Set the desired frequency parameters for list and sweep mode.
| float | start: start frequency to set in Hz |
| float | stop: stop frequency to set in Hz |
| float | step: step frequency to set in Hz |
| float | power: mw power to set in dBm |
| def odmr_logic.ODMRLogic.set_trigger | ( | self, | |
| trigger_pol, | |||
| frequency | |||
| ) |
Set trigger polarity of external microwave trigger (for list and sweep mode).
| object | trigger_pol: one of [TriggerEdge.RISING, TriggerEdge.FALLING] |
| float | frequency: trigger frequency during ODMR scan |
| def odmr_logic.ODMRLogic.start_odmr_scan | ( | self | ) |
Starting an ODMR scan.
| def odmr_logic.ODMRLogic.stop_odmr_scan | ( | self | ) |
Stop the ODMR scan.
|
static |
1.8.13