Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pulsed_measurement_logic.PulsedMeasurementLogic Class Reference

This is the Logic class for the control of pulsed measurements. More...

Inheritance diagram for pulsed_measurement_logic.PulsedMeasurementLogic:
Inheritance graph
[legend]
Collaboration diagram for pulsed_measurement_logic.PulsedMeasurementLogic:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, config, kwargs)
 
def on_activate (self)
 Initialisation performed during activation of the module.
 
def on_deactivate (self)
 Deactivate the module properly.
 
def fast_counter_settings (self)
 Fast counter control methods and properties.
 
def fast_counter_settings (self, settings_dict)
 
def fast_counter_constraints (self)
 
def set_fast_counter_settings (self, settings_dict=None, kwargs)
 
def fast_counter_on (self)
 Switching on the fast counter. More...
 
def fast_counter_off (self)
 Switching off the fast counter. More...
 
def toggle_fast_counter (self, switch_on)
 
def fast_counter_pause (self)
 Switching off the fast counter. More...
 
def fast_counter_continue (self)
 Switching off the fast counter. More...
 
def fast_counter_pause_continue (self, continue_counter)
 
def ext_microwave_settings (self)
 External microwave control methods and properties.
 
def ext_microwave_settings (self, settings_dict)
 
def ext_microwave_constraints (self)
 
def microwave_on (self)
 Turns the external (CW) microwave output on. More...
 
def microwave_off (self)
 Turns the external (CW) microwave output off. More...
 
def toggle_microwave (self, switch_on)
 Turn the external microwave output on/off. More...
 
def set_microwave_settings (self, settings_dict=None, kwargs)
 
def pulse_generator_constraints (self)
 Pulse generator control methods and properties.
 
def pulse_generator_on (self)
 Switching on the pulse generator. More...
 
def pulse_generator_off (self)
 Switching off the pulse generator. More...
 
def toggle_pulse_generator (self, switch_on)
 Switch the pulse generator on or off. More...
 
def measurement_settings (self)
 Measurement control methods and properties.
 
def measurement_settings (self, settings_dict)
 
def measurement_information (self)
 
def measurement_information (self, info_dict)
 
def sampling_information (self)
 
def sampling_information (self, info_dict)
 
def timer_interval (self)
 
def timer_interval (self, value)
 
def alternative_data_type (self)
 
def alternative_data_type (self, alt_data_type)
 
def analysis_methods (self)
 
def extraction_methods (self)
 
def analysis_settings (self)
 
def analysis_settings (self, settings_dict)
 
def extraction_settings (self)
 
def extraction_settings (self, settings_dict)
 
def set_analysis_settings (self, settings_dict=None, kwargs)
 
def set_extraction_settings (self, settings_dict=None, kwargs)
 
def set_measurement_settings (self, settings_dict=None, kwargs)
 
def toggle_pulsed_measurement (self, start, stash_raw_data_tag='')
 Convenience method to start/stop measurement. More...
 
def start_pulsed_measurement (self, stashed_raw_data_tag='')
 Start the analysis loop. More...
 
def stop_pulsed_measurement (self, stash_raw_data_tag='')
 Stop the measurement.
 
def toggle_measurement_pause (self, pause)
 Convenience method to pause/continue measurement. More...
 
def pause_pulsed_measurement (self)
 Pauses the measurement.
 
def continue_pulsed_measurement (self)
 Continues the measurement.
 
def set_timer_interval (self, interval)
 Change the interval of the measurement analysis timer. More...
 
def set_alternative_data_type (self, alt_data_type)
 
def manually_pull_data (self)
 Analyse and display the data.
 
def do_fit (self, fit_method, use_alternative_data=False, data=None)
 Performs the chosen fit on the measured data. More...
 
def save_measurement_data (self, tag=None, with_error=True)
 Prepare data to be saved and create a proper plot of the data. More...
 

Public Attributes

 signal_data
 
 signal_alt_data
 
 measurement_error
 
 laser_data
 
 raw_data
 
 fc
 
 fit_result
 
 alt_fit_result
 
 signal_fit_data
 
 signal_fit_alt_data
 

Static Public Attributes

 fitlogic = Connector(interface='FitLogic')
 declare connectors
 
 savelogic = Connector(interface='SaveLogic')
 
 fastcounter = Connector(interface='FastCounterInterface')
 
 microwave = Connector(interface='MWInterface')
 
 pulsegenerator = Connector(interface='PulserInterface')
 
 extraction_import_path = ConfigOption(name='additional_extraction_path', default=None)
 
 analysis_import_path = ConfigOption(name='additional_analysis_path', default=None)
 
 extraction_parameters = StatusVar(default=None)
 
 analysis_parameters = StatusVar(default=None)
 
 zeropad = StatusVar(default=0)
 
 psd = StatusVar(default=False)
 
 window = StatusVar(default='none')
 
 base_corr = StatusVar(default=True)
 
 sigMeasurementDataUpdated = QtCore.Signal()
 
 sigTimerUpdated = QtCore.Signal(float, int, float)
 
 sigFitUpdated = QtCore.Signal(str, np.ndarray, object, bool)
 
 sigMeasurementStatusUpdated = QtCore.Signal(bool, bool)
 
 sigPulserRunningUpdated = QtCore.Signal(bool)
 
 sigExtMicrowaveRunningUpdated = QtCore.Signal(bool)
 
 sigExtMicrowaveSettingsUpdated = QtCore.Signal(dict)
 
 sigFastCounterSettingsUpdated = QtCore.Signal(dict)
 
 sigMeasurementSettingsUpdated = QtCore.Signal(dict)
 
 sigAnalysisSettingsUpdated = QtCore.Signal(dict)
 
 sigExtractionSettingsUpdated = QtCore.Signal(dict)
 
 sigStartTimer = QtCore.Signal()
 
 sigStopTimer = QtCore.Signal()
 

Detailed Description

This is the Logic class for the control of pulsed measurements.

Member Function Documentation

◆ do_fit()

def pulsed_measurement_logic.PulsedMeasurementLogic.do_fit (   self,
  fit_method,
  use_alternative_data = False,
  data = None 
)

Performs the chosen fit on the measured data.

Parameters
strfit_method: name of the fit method to use
booluse_alternative_data: Flag indicating if the signal data (False) or the alternative signal data (True) should be fitted. Ignored if data is given as parameter
2Dnumpy.ndarray data: the x and y data points for the fit (shape=(2,X))
Returns
(2D numpy.ndarray, result object): the resulting fit data and the fit result object

◆ fast_counter_continue()

def pulsed_measurement_logic.PulsedMeasurementLogic.fast_counter_continue (   self)

Switching off the fast counter.

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

◆ fast_counter_off()

def pulsed_measurement_logic.PulsedMeasurementLogic.fast_counter_off (   self)

Switching off the fast counter.

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

◆ fast_counter_on()

def pulsed_measurement_logic.PulsedMeasurementLogic.fast_counter_on (   self)

Switching on the fast counter.

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

◆ fast_counter_pause()

def pulsed_measurement_logic.PulsedMeasurementLogic.fast_counter_pause (   self)

Switching off the fast counter.

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

◆ microwave_off()

def pulsed_measurement_logic.PulsedMeasurementLogic.microwave_off (   self)

Turns the external (CW) microwave output off.

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

◆ microwave_on()

def pulsed_measurement_logic.PulsedMeasurementLogic.microwave_on (   self)

Turns the external (CW) microwave output on.

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

◆ pulse_generator_off()

def pulsed_measurement_logic.PulsedMeasurementLogic.pulse_generator_off (   self)

Switching off the pulse generator.

◆ pulse_generator_on()

def pulsed_measurement_logic.PulsedMeasurementLogic.pulse_generator_on (   self)

Switching on the pulse generator.

◆ save_measurement_data()

def pulsed_measurement_logic.PulsedMeasurementLogic.save_measurement_data (   self,
  tag = None,
  with_error = True 
)

Prepare data to be saved and create a proper plot of the data.

Parameters
strtag: a filetag which will be included in the filename
boolwith_error: select whether errors should be saved/plotted
Returns
str: filepath where data were saved

◆ set_alternative_data_type()

def pulsed_measurement_logic.PulsedMeasurementLogic.set_alternative_data_type (   self,
  alt_data_type 
)
Parameters
alt_data_type
Returns
:

◆ set_timer_interval()

def pulsed_measurement_logic.PulsedMeasurementLogic.set_timer_interval (   self,
  interval 
)

Change the interval of the measurement analysis timer.

Parameters
int|floatinterval: Interval of the timer in s

◆ start_pulsed_measurement()

def pulsed_measurement_logic.PulsedMeasurementLogic.start_pulsed_measurement (   self,
  stashed_raw_data_tag = '' 
)

Start the analysis loop.

◆ toggle_measurement_pause()

def pulsed_measurement_logic.PulsedMeasurementLogic.toggle_measurement_pause (   self,
  pause 
)

Convenience method to pause/continue measurement.

Parameters
boolpause: Pause the measurement (True) or continue the measurement (False)

◆ toggle_microwave()

def pulsed_measurement_logic.PulsedMeasurementLogic.toggle_microwave (   self,
  switch_on 
)

Turn the external microwave output on/off.

:param switch_on: bool, turn microwave on (True) or off (False) :return int: error code (0:OK, -1:error)

◆ toggle_pulse_generator()

def pulsed_measurement_logic.PulsedMeasurementLogic.toggle_pulse_generator (   self,
  switch_on 
)

Switch the pulse generator on or off.

:param switch_on: bool, turn the pulse generator on (True) or off (False) :return int: error code (0: OK, -1: error)

◆ toggle_pulsed_measurement()

def pulsed_measurement_logic.PulsedMeasurementLogic.toggle_pulsed_measurement (   self,
  start,
  stash_raw_data_tag = '' 
)

Convenience method to start/stop measurement.

Parameters
boolstart: Start the measurement (True) or stop the measurement (False)

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