Qudi
|
Define the controls for a slow counter. More...
Public Member Functions | |
def | get_constraints (self) |
Retrieve the hardware constrains from the counter device. 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) |
Closes the clock and cleans up afterwards. More... | |
![]() | |
def | __new__ (cls, name, bases, attrs) |
Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More... | |
Define the controls for a slow counter.
def slow_counter_interface.SlowCounterInterface.close_clock | ( | self | ) |
Closes the clock and cleans up afterwards.
def slow_counter_interface.SlowCounterInterface.close_counter | ( | self | ) |
Closes the counter and cleans up afterwards.
def slow_counter_interface.SlowCounterInterface.get_constraints | ( | self | ) |
Retrieve the hardware constrains from the counter device.
def slow_counter_interface.SlowCounterInterface.get_counter | ( | self, | |
samples = None |
|||
) |
Returns the current counts per second of the counter.
int | samples: if defined, number of samples to read in one go |
def slow_counter_interface.SlowCounterInterface.get_counter_channels | ( | self | ) |
Returns the list of counter channel names.
Most methods calling this might just care about the number of channels, though.
def slow_counter_interface.SlowCounterInterface.set_up_clock | ( | self, | |
clock_frequency = None , |
|||
clock_channel = None |
|||
) |
Configures the hardware clock of the NiDAQ card to give the timing.
float | clock_frequency: if defined, this sets the frequency of the clock |
string | clock_channel: if defined, this is the physical channel of the clock |
def slow_counter_interface.SlowCounterInterface.set_up_counter | ( | self, | |
counter_channels = None , |
|||
sources = None , |
|||
clock_channel = None , |
|||
counter_buffer = None |
|||
) |
Configures the actual counter with a given clock.
list(str) | counter_channels: optional, physical channel of the counter |
list(str) | sources: optional, physical channel where the photons photons are to count from |
str | clock_channel: optional, specifies the clock channel for the counter |
int | counter_buffer: optional, a buffer of specified integer length, where in each bin the count numbers are saved. |
There need to be exactly the same number sof sources and counter channels and they need to be given in the same order. All counter channels share the same clock.