Qudi
|
Hardware Class for the FastComtec Card. More...
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 | get_constraints (self) |
Retrieve the hardware constrains from the Fast counting device. More... | |
def | configure (self, bin_width_s, record_length_s, number_of_gates=0, filename=None) |
Configuration of the fast counter. More... | |
def | get_status (self) |
def | get_current_runtime (self) |
Returns the current runtime. More... | |
def | get_current_sweeps (self) |
Returns the current runtime. More... | |
def | start_measure (self) |
Start the measurement. More... | |
def | pause_measure (self) |
Make a pause in the measurement, which can be continued. More... | |
def | stop_measure (self) |
Stop the measurement. More... | |
def | continue_measure (self) |
Continue a paused measurement. More... | |
def | get_binwidth (self) |
Returns the width of a single timebin in the timetrace in seconds. More... | |
def | is_gated (self) |
Check the gated counting possibility. More... | |
def | get_data_trace (self) |
def | get_data_testfile (self) |
Load data test file. | |
def | get_bitshift (self) |
Get bitshift from Fastcomtec. More... | |
def | set_bitshift (self, bitshift) |
Sets the bitshift properly for this card. More... | |
def | set_binwidth (self, binwidth) |
Set defined binwidth in Card. More... | |
def | set_length (self, length_bins, preset=None, cycles=None, sequences=None) |
Sets the length of the length of the actual measurement. More... | |
def | set_preset (self, preset) |
def | set_cycles (self, cycles) |
def | get_length (self) |
Get the length of the current measurement. More... | |
def | change_sweep_mode (self, gated) |
def | change_save_mode (self, mode) |
Changes the save mode of p7887. More... | |
def | set_delay_start (self, delay_s) |
Sets the record delay length. More... | |
def | get_delay_start (self) |
Returns the current record delay length. More... | |
def | SetDelay (self, t) |
def | GetDelay (self) |
def | SaveData_locally (self, filename, laser_index) |
def | SetLevel (self, start, stop) |
def | GetLevel (self) |
def | Running (self) |
def | GetStatus (self) |
def | load_setup (self, configname) |
![]() | |
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... | |
Public Attributes | |
stopped_or_halt | |
timetrace_tmp | |
dll | |
![]() | |
module_state | |
connectors | |
Static Public Attributes | |
gated = ConfigOption('gated', False, missing='warn') | |
trigger_safety = ConfigOption('trigger_safety', 200e-9, missing='warn') | |
aom_delay = ConfigOption('aom_delay', 400e-9, missing='warn') | |
minimal_binwidth = ConfigOption('minimal_binwidth', 0.25e-9, missing='warn') | |
Hardware Class for the FastComtec Card.
unstable Jochen Scheuer, Simon Schmitt
Example config for copy-paste:
fastcomtec_p7887: module 'fastcomtec.fastcomtecp7887.FastComtec' gated False trigger_safety 200e-9 aom_delay 400e-9 minimal_binwidth 0.25e-9
def fastcomtecp7887.FastComtec.change_save_mode | ( | self, | |
mode | |||
) |
Changes the save mode of p7887.
int | mode: Specifies the save mode (0: No Save at Halt, 1: Save at Halt, 2 Write list file, No Save at Halt, 3: Write list file, Save at Halt @return int mode: specified save mode |
def fastcomtecp7887.FastComtec.configure | ( | self, | |
bin_width_s, | |||
record_length_s, | |||
number_of_gates = 0 , |
|||
filename = None |
|||
) |
Configuration of the fast counter.
float | bin_width_s: Length of a single time bin in the time trace histogram in seconds. |
float | record_length_s: Total length of the timetrace/each single gate in seconds. |
int | number_of_gates: optional, number of gates in the pulse sequence. Ignore for not gated counter. |
def fastcomtecp7887.FastComtec.continue_measure | ( | self | ) |
Continue a paused measurement.
def fastcomtecp7887.FastComtec.get_binwidth | ( | self | ) |
Returns the width of a single timebin in the timetrace in seconds.
The red out bitshift will be converted to binwidth. The binwidth is defined as 2**bitshift*minimal_binwidth.
def fastcomtecp7887.FastComtec.get_bitshift | ( | self | ) |
Get bitshift from Fastcomtec.
def fastcomtecp7887.FastComtec.get_constraints | ( | self | ) |
Retrieve the hardware constrains from the Fast counting device.
The keys of the returned dictionary are the str name for the constraints (which are set in this method).
NO OTHER KEYS SHOULD BE INVENTED!
If you are not sure about the meaning, look in other hardware files to get an impression. If still additional constraints are needed, then they have to be added to all files containing this interface.
The items of the keys are again dictionaries which have the generic dictionary form: {'min':
, 'max':
, 'step':
, 'unit': '
'}
Only the key 'hardware_binwidth_list' differs, since they contain the list of possible binwidths.
If the constraints cannot be set in the fast counting hardware then write just zero to each key of the generic dicts. Note that there is a difference between float input (0.0) and integer input (0), because some logic modules might rely on that distinction.
ALL THE PRESENT KEYS OF THE CONSTRAINTS DICT MUST BE ASSIGNED!
def fastcomtecp7887.FastComtec.get_current_runtime | ( | self | ) |
Returns the current runtime.
def fastcomtecp7887.FastComtec.get_current_sweeps | ( | self | ) |
Returns the current runtime.
def fastcomtecp7887.FastComtec.get_delay_start | ( | self | ) |
Returns the current record delay length.
def fastcomtecp7887.FastComtec.get_length | ( | self | ) |
Get the length of the current measurement.
def fastcomtecp7887.FastComtec.is_gated | ( | self | ) |
Check the gated counting possibility.
def fastcomtecp7887.FastComtec.pause_measure | ( | self | ) |
Make a pause in the measurement, which can be continued.
def fastcomtecp7887.FastComtec.set_binwidth | ( | self, | |
binwidth | |||
) |
Set defined binwidth in Card.
float | binwidth: the current binwidth in seconds |
The binwidth is converted into to an appropiate bitshift defined as 2**bitshift*minimal_binwidth.
def fastcomtecp7887.FastComtec.set_bitshift | ( | self, | |
bitshift | |||
) |
Sets the bitshift properly for this card.
int | bitshift: |
def fastcomtecp7887.FastComtec.set_delay_start | ( | self, | |
delay_s | |||
) |
Sets the record delay length.
int | delay_s: Record delay after receiving a start trigger |
def fastcomtecp7887.FastComtec.set_length | ( | self, | |
length_bins, | |||
preset = None , |
|||
cycles = None , |
|||
sequences = None |
|||
) |
Sets the length of the length of the actual measurement.
int | length_bins: Length of the measurement in bins |
def fastcomtecp7887.FastComtec.start_measure | ( | self | ) |
Start the measurement.
def fastcomtecp7887.FastComtec.stop_measure | ( | self | ) |
Stop the measurement.