Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
singleshot_logic.SingleShotLogic Class Reference

This class brings raw data coming from fastcounter measurements (gated or ungated) into trace form processable by the trace_analysis_logic. More...

Inheritance diagram for singleshot_logic.SingleShotLogic:
Inheritance graph
[legend]
Collaboration diagram for singleshot_logic.SingleShotLogic:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, config, kwargs)
 Create CounterLogic object with connectors. More...
 
def on_activate (self)
 Initialisation performed during activation of the module.
 
def on_deactivate (self)
 Deinitialisation performed during deactivation of the module. More...
 
def get_data (self, fastcounter='fastcomtec')
 get the singleshot data from the fastcounter along with its shape More...
 
def find_laser (self, smoothing=10.0, n_laserpulses=2)
 returns the start and stop indices of laserpulses More...
 
def sum_laserpulse (self, smoothing=10.0, n_laserpulses=2)
 
def get_normalized_signal (self, smoothing=10.0)
 
def calc_all_binnings (self, num_bins=100)
 calculate reasonable binnings of the signal More...
 
def calc_all_binnings_normalized (self, num_bins=100)
 Calculate all normalized binnings from singleshot data. More...
 
def get_timetrace (self)
 
def do_singleshot (self, mw_dict=None, refocus=True, laser_wfm='LaserOn', singleshot_wfm='SSR_normalise_2MW', normalized=True)
 
def do_pulsed_odmr (self, measurement_time, controlled_vals_start, controlled_vals_incr, num_of_lasers, sequence_length_s, refocus=True, pulsedODMR_wfm='PulsedODMR', save_tag='')
 A function to do pulsed odmr. More...
 
def save_singleshot (self, tag=None, normalized=True, visualize=True)
 
def visualize_bin_list (self, bin_list, path)
 Will create a histogram of all bin_list entries and save it to the specified path.
 
def ssr_measurement_analysis (self, record_length)
 Gets executed when a single shot measurment has finished. More...
 
def do_calculate_histogram (self, data)
 Passes all the needed parameters to the appropriated methods. More...
 
def do_calculate_trace (self, time_axis, data)
 

Public Attributes

 hist_data
 
 data_dict
 
 trace
 

Static Public Attributes

 savelogic = Connector(interface='SaveLogic')
 
 fitlogic = Connector(interface='FitLogic')
 
 fastcounter = Connector(interface='FastCounterInterface')
 
 pulseextractionlogic = Connector(interface='PulseExtractionLogic')
 
 pulsedmeasurementlogic = Connector(interface='PulsedMeasurementLogic')
 
 traceanalysislogic1 = Connector(interface='TraceAnalysisLogic')
 
 pulsegenerator = Connector(interface='PulserInterface')
 
 scannerlogic = Connector(interface='ScannerLogic')
 
 optimizerlogic = Connector(interface='OptimizerLogic')
 
 pulsedmasterlogic = Connector(interface='PulsedMasterLogic')
 
 odmrlogic = Connector(interface='ODMRLogic')
 
 sigHistogramUpdated = QtCore.Signal()
 
 sigMeasurementFinished = QtCore.Signal()
 
 sigTraceUpdated = QtCore.Signal()
 

Detailed Description

This class brings raw data coming from fastcounter measurements (gated or ungated) into trace form processable by the trace_analysis_logic.

Constructor & Destructor Documentation

◆ __init__()

def singleshot_logic.SingleShotLogic.__init__ (   self,
  config,
  kwargs 
)

Create CounterLogic object with connectors.

Parameters
dictconfig: module configuration
dictkwargs: optional parameters

Member Function Documentation

◆ calc_all_binnings()

def singleshot_logic.SingleShotLogic.calc_all_binnings (   self,
  num_bins = 100 
)

calculate reasonable binnings of the signal

Parameters
intnum_bins: minimal number the binnings can have
Returns
list bin_list: Contains the arrays with the binned data. Data is structured as follows: bin_list[0] is the initial binning given by the measurement and then going up.

◆ calc_all_binnings_normalized()

def singleshot_logic.SingleShotLogic.calc_all_binnings_normalized (   self,
  num_bins = 100 
)

Calculate all normalized binnings from singleshot data.

Parameters
integernum_bins: Tells how many data points should still remain ( in this sense restricts the maximum number of data points added up together )
Returns
list normalized_bin_list: The entries are numpy arrays that represent different binnings ( 1 to n values)

◆ do_calculate_histogram()

def singleshot_logic.SingleShotLogic.do_calculate_histogram (   self,
  data 
)

Passes all the needed parameters to the appropriated methods.

Returns
:

◆ do_pulsed_odmr()

def singleshot_logic.SingleShotLogic.do_pulsed_odmr (   self,
  measurement_time,
  controlled_vals_start,
  controlled_vals_incr,
  num_of_lasers,
  sequence_length_s,
  refocus = True,
  pulsedODMR_wfm = 'PulsedODMR',
  save_tag = '' 
)

A function to do pulsed odmr.

Important as exact transition frequencies are important.

Parameters
measurement_time
controlled_vals_start
controlled_vals_incr
num_of_lasers
sequence_length_s
refocus
pulsedODMR_wfm
save_tag
Returns
:

◆ find_laser()

def singleshot_logic.SingleShotLogic.find_laser (   self,
  smoothing = 10.0,
  n_laserpulses = 2 
)

returns the start and stop indices of laserpulses

Parameters
smoothingsmoothing data to improve flank detection
n_laserpulsesthe number of laserpulses expected in the data
Returns
: list containing tupels of start and stop values of individual laser pulses

◆ get_data()

def singleshot_logic.SingleShotLogic.get_data (   self,
  fastcounter = 'fastcomtec' 
)

get the singleshot data from the fastcounter along with its shape

Parameters

◆ on_deactivate()

def singleshot_logic.SingleShotLogic.on_deactivate (   self)

Deinitialisation performed during deactivation of the module.

Parameters
objecte: Event class object from Fysom. A more detailed explanation can be found in method activation.

◆ ssr_measurement_analysis()

def singleshot_logic.SingleShotLogic.ssr_measurement_analysis (   self,
  record_length 
)

Gets executed when a single shot measurment has finished.

This function will update GUI elements

Parameters
record_length
Returns
:

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