Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
odmrgui.ODMRGui Class Reference

This is the GUI Class for ODMR measurements. More...

Inheritance diagram for odmrgui.ODMRGui:
Inheritance graph
[legend]
Collaboration diagram for odmrgui.ODMRGui:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, config, kwargs)
 
def on_activate (self)
 Definition, configuration and initialisation of the ODMR GUI. More...
 
def on_deactivate (self)
 Reverse steps of activation. More...
 
def show (self)
 Make window visible and put it above all other windows. More...
 
def run_stop_odmr (self, is_checked)
 Manages what happens if odmr scan is started/stopped. More...
 
def resume_odmr (self, is_checked)
 
def toggle_cw_mode (self, is_checked)
 Starts or stops CW microwave output if no measurement is running. More...
 
def update_status (self, mw_mode, is_running)
 Update the display for a change in the microwave status (mode and output). More...
 
def clear_odmr_data (self)
 Clear the ODMR data. More...
 
def update_plots (self, odmr_data_x, odmr_data_y, odmr_matrix)
 Refresh the plot widgets with new data. More...
 
def update_channel (self, index)
 
def average_level_changed (self)
 Sends to lines to average to the logic.
 
def colorscale_changed (self)
 Updates the range of the displayed colorscale in both the colorbar and the matrix plot.
 
def update_colorbar (self, cb_range)
 Update the colorbar to a new range. More...
 
def get_matrix_cb_range (self)
 Determines the cb_min and cb_max values for the matrix plot.
 
def restore_defaultview (self)
 
def update_elapsedtime (self, elapsed_time, scanned_lines)
 Updates current elapsed measurement time and completed frequency sweeps.
 
def update_settings (self)
 Write the new settings from the gui to the file. More...
 
def reject_settings (self)
 Keep the old settings and restores the old settings in the gui. More...
 
def do_fit (self)
 
def update_fit (self, x_data, y_data, result_str_dict, current_fit)
 Update the shown fit. More...
 
def update_parameter (self, param_dict)
 Update the parameter display in the GUI. More...
 
def change_cw_params (self)
 Change Methods #. More...
 
def change_sweep_params (self)
 Change start, stop and step frequency of frequency sweep.
 
def change_runtime (self)
 Change time after which microwave sweep is stopped.
 
def save_data (self)
 Save the sum plot, the scan marix plot and the scan data.
 

Public Attributes

 mwsettings
 
 display_channel
 
 odmr_matrix_image
 
 odmr_image
 
 odmr_fit_image
 
 odmr_cb
 Configuration of the Colorbar #.
 

Static Public Attributes

 odmrlogic1 = Connector(interface='ODMRLogic')
 
 savelogic = Connector(interface='SaveLogic')
 
 sigStartOdmrScan = QtCore.Signal()
 
 sigStopOdmrScan = QtCore.Signal()
 
 sigContinueOdmrScan = QtCore.Signal()
 
 sigClearData = QtCore.Signal()
 
 sigCwMwOn = QtCore.Signal()
 
 sigMwOff = QtCore.Signal()
 
 sigMwPowerChanged = QtCore.Signal(float)
 
 sigMwCwParamsChanged = QtCore.Signal(float, float)
 
 sigMwSweepParamsChanged = QtCore.Signal(float, float, float, float)
 
 sigClockFreqChanged = QtCore.Signal(float)
 
 sigFitChanged = QtCore.Signal(str)
 
 sigNumberOfLinesChanged = QtCore.Signal(int)
 
 sigRuntimeChanged = QtCore.Signal(float)
 
 sigDoFit = QtCore.Signal(str, object, object, int)
 
 sigSaveMeasurement = QtCore.Signal(str, list, list)
 
 sigAverageLinesChanged = QtCore.Signal(int)
 

Detailed Description

This is the GUI Class for ODMR measurements.

Member Function Documentation

◆ change_cw_params()

def odmrgui.ODMRGui.change_cw_params (   self)

Change Methods #.

Change CW frequency and power of microwave source

◆ clear_odmr_data()

def odmrgui.ODMRGui.clear_odmr_data (   self)

Clear the ODMR data.

◆ on_activate()

def odmrgui.ODMRGui.on_activate (   self)

Definition, configuration and initialisation of the ODMR GUI.

This init connects all the graphic modules, which were created in the *.ui file and configures the event handling between the modules.

◆ on_deactivate()

def odmrgui.ODMRGui.on_deactivate (   self)

Reverse steps of activation.

Returns
int: error code (0:OK, -1:error)

◆ reject_settings()

def odmrgui.ODMRGui.reject_settings (   self)

Keep the old settings and restores the old settings in the gui.

◆ run_stop_odmr()

def odmrgui.ODMRGui.run_stop_odmr (   self,
  is_checked 
)

Manages what happens if odmr scan is started/stopped.

◆ show()

def odmrgui.ODMRGui.show (   self)

Make window visible and put it above all other windows.

◆ toggle_cw_mode()

def odmrgui.ODMRGui.toggle_cw_mode (   self,
  is_checked 
)

Starts or stops CW microwave output if no measurement is running.

◆ update_colorbar()

def odmrgui.ODMRGui.update_colorbar (   self,
  cb_range 
)

Update the colorbar to a new range.

Parameters
listcb_range: List or tuple containing the min and max values for the cb range

◆ update_fit()

def odmrgui.ODMRGui.update_fit (   self,
  x_data,
  y_data,
  result_str_dict,
  current_fit 
)

Update the shown fit.

◆ update_parameter()

def odmrgui.ODMRGui.update_parameter (   self,
  param_dict 
)

Update the parameter display in the GUI.

Parameters
param_dict
Returns
:

Any change event from the logic should call this update function. The update will block the GUI signals from emitting a change back to the logic.

◆ update_plots()

def odmrgui.ODMRGui.update_plots (   self,
  odmr_data_x,
  odmr_data_y,
  odmr_matrix 
)

Refresh the plot widgets with new data.

◆ update_settings()

def odmrgui.ODMRGui.update_settings (   self)

Write the new settings from the gui to the file.

◆ update_status()

def odmrgui.ODMRGui.update_status (   self,
  mw_mode,
  is_running 
)

Update the display for a change in the microwave status (mode and output).

Parameters
strmw_mode: is the microwave output active?
boolis_running: is the microwave output active?

The documentation for this class was generated from the following file: