|
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 | get_constraints (self) |
| Return a constraints class for the slow counter. More...
|
|
def | set_up_clock (self, clock_frequency=None, clock_channel=None) |
| Configures the hardware clock of the NiDAQ card to give the timing. More...
|
|
def | set_up_counter (self, counter_channels=None, sources=None, clock_channel=None, counter_buffer=None) |
| Configures the actual counter with a given clock. More...
|
|
def | get_counter (self, samples=None) |
| Returns the current counts per second of the counter. More...
|
|
def | get_counter_channels (self) |
| Returns the list of counter channel names. More...
|
|
def | close_counter (self) |
| Closes the counter and cleans up afterwards. More...
|
|
def | close_clock (self, power=0) |
| Closes the clock and cleans up afterwards. More...
|
|
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...
|
|
def | __new__ (cls, name, bases, attrs) |
| Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
|
|
Dummy hardware class to emulate a slow counter with various distributions.
Example config for copy-paste:
slow_counter_dummy: module 'slow_counter_dummy.SlowCounterDummy' clock_frequency 100 # in Hz samples_number 10 source_channels 2 count_distribution 'dark_bright_gaussian' # other options are:
'uniform, 'exponential', 'single_poisson', 'dark_bright_poisson'
and 'single_gaussian'.