Qudi
Public Member Functions | Static Public Attributes | List of all members
odmr_counter_dummy.ODMRCounterDummy Class Reference

Dummy hardware class to simulate the controls for a simple ODMR. More...

Inheritance diagram for odmr_counter_dummy.ODMRCounterDummy:
Inheritance graph
[legend]
Collaboration diagram for odmr_counter_dummy.ODMRCounterDummy:
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)
 Deinitialisation performed during deactivation of the module.
 
def set_up_odmr_clock (self, clock_frequency=None, clock_channel=None)
 Configures the hardware clock of the NiDAQ card to give the timing. More...
 
def set_up_odmr (self, counter_channel=None, photon_source=None, clock_channel=None, odmr_trigger_channel=None)
 Configures the actual counter with a given clock. More...
 
def set_odmr_length (self, length=100)
 Sets up the trigger sequence for the ODMR and the triggered microwave. More...
 
def count_odmr (self, length=100)
 Sweeps the microwave and returns the counts on that sweep. More...
 
def close_odmr (self)
 Closes the odmr and cleans up afterwards. More...
 
def close_odmr_clock (self)
 Closes the odmr and cleans up afterwards. More...
 
def get_odmr_channels (self)
 Return a list of channel names. More...
 
- Public Member Functions inherited from core.module.BaseMixin
def __init__ (self, manager, name, config=None, callbacks=None, kwargs)
 Initialise Base class object and set up its state machine. More...
 
def log (self)
 Returns a logger object.
 
def is_module_threaded (self)
 Returns whether the module shall be started in a thread.
 
def on_activate (self)
 Method called when module is activated. More...
 
def on_deactivate (self)
 Method called when module is deactivated. More...
 
def getStatusVariables (self)
 Return a dict of variable names and their content representing the module state for saving. More...
 
def setStatusVariables (self, variableDict)
 Give a module a dict of variable names and their content representing the module state. More...
 
def getConfiguration (self)
 Return the configration dictionary for this module. More...
 
def get_connector (self, connector_name)
 Return module connected to the given named connector. More...
 
- Public Member Functions inherited from core.module.ModuleMeta
def __new__ (cls, name, bases, attrs)
 Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
 

Static Public Attributes

 fitlogic = Connector(interface='FitLogic')
 

Additional Inherited Members

- Public Attributes inherited from core.module.BaseMixin
 module_state
 
 connectors
 

Detailed Description

Dummy hardware class to simulate the controls for a simple ODMR.

Example config for copy-paste:

odmr_counter_dummy: module 'odmr_counter_dummy.ODMRCounterDummy' clock_frequency 100 # in Hz number_of_channels 2 fitlogic 'fitlogic' # name of the fitlogic module, see default config

Member Function Documentation

◆ close_odmr()

def odmr_counter_dummy.ODMRCounterDummy.close_odmr (   self)

Closes the odmr and cleans up afterwards.

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

◆ close_odmr_clock()

def odmr_counter_dummy.ODMRCounterDummy.close_odmr_clock (   self)

Closes the odmr and cleans up afterwards.

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

◆ count_odmr()

def odmr_counter_dummy.ODMRCounterDummy.count_odmr (   self,
  length = 100 
)

Sweeps the microwave and returns the counts on that sweep.

Parameters
intlength: length of microwave sweep in pixel
Returns
float[]: the photon counts per second

◆ get_odmr_channels()

def odmr_counter_dummy.ODMRCounterDummy.get_odmr_channels (   self)

Return a list of channel names.

Returns
list(str): channels recorded during ODMR measurement

◆ set_odmr_length()

def odmr_counter_dummy.ODMRCounterDummy.set_odmr_length (   self,
  length = 100 
)

Sets up the trigger sequence for the ODMR and the triggered microwave.

Parameters
intlength: length of microwave sweep in pixel
Returns
int: error code (0:OK, -1:error)

◆ set_up_odmr()

def odmr_counter_dummy.ODMRCounterDummy.set_up_odmr (   self,
  counter_channel = None,
  photon_source = None,
  clock_channel = None,
  odmr_trigger_channel = None 
)

Configures the actual counter with a given clock.

Parameters
strcounter_channel: if defined, this is the physical channel of the counter
strphoton_source: if defined, this is the physical channel where the photons are to count from
strclock_channel: if defined, this specifies the clock for the counter
strodmr_trigger_channel: if defined, this specifies the trigger output for the microwave
Returns
int: error code (0:OK, -1:error)

◆ set_up_odmr_clock()

def odmr_counter_dummy.ODMRCounterDummy.set_up_odmr_clock (   self,
  clock_frequency = None,
  clock_channel = None 
)

Configures the hardware clock of the NiDAQ card to give the timing.

Parameters
floatclock_frequency: if defined, this sets the frequency of the clock
strclock_channel: if defined, this is the physical channel of the clock
Returns
int: error code (0:OK, -1:error)

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