Qudi
Public Member Functions | Static Public Attributes | List of all members
gated_counter_gui.GatedCounterGui Class Reference

Main GUI for the Gated Counting. More...

Inheritance diagram for gated_counter_gui.GatedCounterGui:
Inheritance graph
[legend]
Collaboration diagram for gated_counter_gui.GatedCounterGui:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, config, kwargs)
 
def on_activate (self, e=None)
 Definition and initialisation of the GUI. More...
 
def on_deactivate (self)
 Deinitialisation performed during deactivation of the module.
 
def show (self)
 Make main window visible and put it above all other windows. More...
 
def set_default_view_main_window (self)
 Restore the default view and arrangement of the DockWidgets. More...
 
def start_clicked (self)
 Handling the Start button to stop and restart the counter. More...
 
def stop_clicked (self)
 Handling the Stop button to stop and restart the counter. More...
 
def reset_toolbar_display (self)
 Run this method after finishing the counting to get initial status.
 
def save_clicked (self)
 Trigger the save routine in the logic. More...
 
def count_length_changed (self)
 Handle the change of the count_length and send it to the measurement.
 
def count_per_readout_changed (self)
 Handling the change of the oversampling and sending it to the measurement.
 
def update_trace (self)
 The function that grabs the data and sends it to the plot. More...
 
def update_histogram (self)
 Update procedure for the histogram to display the new data. More...
 
def num_bins_changed (self, num_bins)
 
def fit_clicked (self)
 Do the configured fit and show it in the sum plot.
 
def update_analysis_results (self)
 Update the spin flip probability and the fidelities. More...
 

Static Public Attributes

 gatedcounterlogic1 = Connector(interface='GatedCounterLogic')
 declare connectors
 
 traceanalysislogic1 = Connector(interface='TraceAnalysisLogic')
 
 sigStartGatedCounter = QtCore.Signal()
 
 sigStopGatedCounter = QtCore.Signal()
 

Detailed Description

Main GUI for the Gated Counting.

Member Function Documentation

◆ num_bins_changed()

def gated_counter_gui.GatedCounterGui.num_bins_changed (   self,
  num_bins 
)
Parameters
intnum_bins: Number of bins to be set in the trace.
    This method is executed by both events, the valueChanged of the SpinBox
    and value changed in the Slider. Until now, there appears no infinite
    signal loop. It that occur one day, than this method has to be split
    in two seperate methods.

◆ on_activate()

def gated_counter_gui.GatedCounterGui.on_activate (   self,
  e = None 
)

Definition and initialisation of the GUI.

Parameters
objecte: Fysom.event object from Fysom class. An object created by the state machine module Fysom, which is connected to a specific event (have a look in the Base Class). This object contains the passed event, the state before the event happened and the destination of the state which should be reached after the event had happened.

◆ save_clicked()

def gated_counter_gui.GatedCounterGui.save_clicked (   self)

Trigger the save routine in the logic.

Pass also the chosen filename.

◆ set_default_view_main_window()

def gated_counter_gui.GatedCounterGui.set_default_view_main_window (   self)

Restore the default view and arrangement of the DockWidgets.

◆ show()

def gated_counter_gui.GatedCounterGui.show (   self)

Make main window visible and put it above all other windows.

◆ start_clicked()

def gated_counter_gui.GatedCounterGui.start_clicked (   self)

Handling the Start button to stop and restart the counter.

◆ stop_clicked()

def gated_counter_gui.GatedCounterGui.stop_clicked (   self)

Handling the Stop button to stop and restart the counter.

◆ update_analysis_results()

def gated_counter_gui.GatedCounterGui.update_analysis_results (   self)

Update the spin flip probability and the fidelities.

◆ update_histogram()

def gated_counter_gui.GatedCounterGui.update_histogram (   self)

Update procedure for the histogram to display the new data.

◆ update_trace()

def gated_counter_gui.GatedCounterGui.update_trace (   self)

The function that grabs the data and sends it to the plot.


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