Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
laser_scanner_logic.LaserScannerLogic Class Reference

This logic module controls scans of DC voltage on the fourth analog output channel of the NI Card. More...

Inheritance diagram for laser_scanner_logic.LaserScannerLogic:
Inheritance graph
[legend]
Collaboration diagram for laser_scanner_logic.LaserScannerLogic:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, kwargs)
 Create VoltageScanningLogic 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.
 
def goto_voltage (self, volts=None)
 Forwarding the desired output voltage to the scanning device. More...
 
def set_clock_frequency (self, clock_frequency)
 Sets the frequency of the clock. More...
 
def set_resolution (self, resolution)
 Calculate clock rate from scan speed and desired number of pixels.
 
def set_scan_range (self, scan_range)
 Set the scan rnage.
 
def set_voltage (self, volts)
 Set the channel idle voltage.
 
def set_scan_speed (self, scan_speed)
 Set scan speed in volt per second.
 
def set_scan_lines (self, scan_lines)
 
def get_current_voltage (self)
 returns current voltage of hardware device(atm NIDAQ 4th output)
 
def start_scanning (self, v_min=None, v_max=None)
 Setting up the scanner device and starts the scanning procedure. More...
 
def stop_scanning (self)
 Stops the scan. More...
 
def kill_scanner (self)
 Closing the scanner device. More...
 
def save_data (self, tag=None, colorscale_range=None, percentile_range=None)
 Save the counter trace data and writes it to a file. More...
 
def draw_figure (self, matrix_data, freq_data, count_data, fit_freq_vals, fit_count_vals, cbar_range=None, percentile_range=None)
 Draw the summary figure to save with the data. More...
 

Public Attributes

 threadlock
 
 stopRequested
 
 fit_x
 
 fit_y
 
 plot_x
 
 plot_y
 
 plot_y2
 
 a_range
 
 current_position
 
 upwards_scan
 
 acquire_time
 
 scan_matrix
 
 scan_matrix2
 

Static Public Attributes

 sig_data_updated = QtCore.Signal()
 
 confocalscanner1 = Connector(interface='ConfocalScannerInterface')
 
 savelogic = Connector(interface='SaveLogic')
 
 scan_range = StatusVar('scan_range', [-10, 10])
 
 number_of_repeats = StatusVar(default=10)
 
 resolution = StatusVar('resolution', 500)
 
 sigChangeVoltage = QtCore.Signal(float)
 
 sigVoltageChanged = QtCore.Signal(float)
 
 sigScanNextLine = QtCore.Signal()
 
 sigUpdatePlots = QtCore.Signal()
 
 sigScanFinished = QtCore.Signal()
 
 sigScanStarted = QtCore.Signal()
 

Detailed Description

This logic module controls scans of DC voltage on the fourth analog output channel of the NI Card.

It collects countrate as a function of voltage.

Constructor & Destructor Documentation

◆ __init__()

def laser_scanner_logic.LaserScannerLogic.__init__ (   self,
  kwargs 
)

Create VoltageScanningLogic object with connectors.

Parameters
dictkwargs: optional parameters

Member Function Documentation

◆ draw_figure()

def laser_scanner_logic.LaserScannerLogic.draw_figure (   self,
  matrix_data,
  freq_data,
  count_data,
  fit_freq_vals,
  fit_count_vals,
  cbar_range = None,
  percentile_range = None 
)

Draw the summary figure to save with the data.

Parameters

◆ goto_voltage()

def laser_scanner_logic.LaserScannerLogic.goto_voltage (   self,
  volts = None 
)

Forwarding the desired output voltage to the scanning device.

Parameters
floatvolts: desired voltage (volts)
Returns
int: error code (0:OK, -1:error)

◆ kill_scanner()

def laser_scanner_logic.LaserScannerLogic.kill_scanner (   self)

Closing the scanner device.

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

◆ save_data()

def laser_scanner_logic.LaserScannerLogic.save_data (   self,
  tag = None,
  colorscale_range = None,
  percentile_range = None 
)

Save the counter trace data and writes it to a file.

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

◆ set_clock_frequency()

def laser_scanner_logic.LaserScannerLogic.set_clock_frequency (   self,
  clock_frequency 
)

Sets the frequency of the clock.

Parameters
intclock_frequency: desired frequency of the clock
Returns
int: error code (0:OK, -1:error)

◆ start_scanning()

def laser_scanner_logic.LaserScannerLogic.start_scanning (   self,
  v_min = None,
  v_max = None 
)

Setting up the scanner device and starts the scanning procedure.

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

◆ stop_scanning()

def laser_scanner_logic.LaserScannerLogic.stop_scanning (   self)

Stops the scan.

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

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