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=1) |
Configuration of the fast counter. More... | |
def | get_status (self) |
def | start_measure (self) |
Start the measurement. More... | |
def | stop_measure (self) |
Stop the measurement. More... | |
def | pause_measure (self) |
Make a pause in the measurement, which can be continued. More... | |
def | continue_measure (self) |
Continue a paused measurement. More... | |
def | is_gated (self) |
Check the gated counting possibility. More... | |
def | get_binwidth (self) |
Returns the width of a single timebin in the timetrace in seconds. More... | |
def | get_data_trace (self) |
def | set_gated (self, gated) |
Change the gated status of the fast counter. More... | |
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) |
Sets the length of the length of the actual measurement. More... | |
def | get_length (self) |
Get the length of the current measurement. 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 | configure_gated_counter (self, bin_width_s, record_length_s, preset=None, cycles=None, sequences=None) |
Methods for gated counting ##########################################. More... | |
def | change_sweep_mode (self, gated, cycles=None, preset=None) |
Change the sweep mode (gated, ungated) More... | |
def | set_preset_mode (self, mode=16, preset=None) |
Turns on or off a specific preset mode. More... | |
def | set_preset (self, preset) |
Sets the preset/. More... | |
def | get_preset (self) |
Gets the preset. More... | |
def | set_cycle_mode (self, mode=True, cycles=None) |
Turns on or off the sequential cycle mode. More... | |
def | set_cycles (self, cycles) |
Sets the cycles. More... | |
def | get_cycles (self) |
Gets the cycles. More... | |
def | set_sequences (self, sequences) |
Sets the cycles. More... | |
def | get_sequences (self) |
Gets the cycles. More... | |
def | set_dimension (self, length, cycles) |
Get the dimension of the 2D Trace. More... | |
def | get_dimension (self) |
Get the dimension of the 2D Trace. More... | |
def | configure_ssr_counter (self, counts_per_readout=None, countlength=None) |
Methods for SSR interface ####################################. More... | |
def | change_filename (self, name) |
Methods for saving ###############################################. More... | |
def | change_save_mode (self, mode) |
Changes the save mode of Mcs6. More... | |
def | save_data (self, filename) |
save the current settings and data More... | |
def | get_2D_trace (self) |
Methods to fulfill gated counter interface ################### (NOT TESTED SINCE GATED COUNTER IS NOT WORKING PROBABLY YET) ##########. | |
def | get_count_length (self) |
def | set_count_length (self, length) |
def | get_counting_samples (self) |
def | set_counting_samples (self, samples) |
def | save_raw_data (self, nametag) |
![]() | |
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', 400e-9, missing='warn') | |
aom_delay = ConfigOption('aom_delay', 390e-9, missing='warn') | |
minimal_binwidth = ConfigOption('minimal_binwidth', 0.2e-9, missing='warn') | |
Hardware Class for the FastComtec Card.
stable Jochen Scheuer, Simon Schmitt
Example config for copy-paste:
fastcomtec_mcs6: module 'fastcomtec.fastcomtecmcs6.FastComtec' gated False trigger_safety 400e-9 aom_delay 390e-9 minimal_binwidth 0.2e-9
def fastcomtecmcs6.FastComtec.change_filename | ( | self, | |
name | |||
) |
Methods for saving ###############################################.
Changes filename
@param str name: Location and name of the file
def fastcomtecmcs6.FastComtec.change_save_mode | ( | self, | |
mode | |||
) |
Changes the save mode of Mcs6.
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 fastcomtecmcs6.FastComtec.change_sweep_mode | ( | self, | |
gated, | |||
cycles = None , |
|||
preset = None |
|||
) |
Change the sweep mode (gated, ungated)
bool | gated: Gated or ungated |
int | cycles: Optional, change number of cycles |
int | preset: Optional, change number of preset |
def fastcomtecmcs6.FastComtec.configure | ( | self, | |
bin_width_s, | |||
record_length_s, | |||
number_of_gates = 1 |
|||
) |
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 fastcomtecmcs6.FastComtec.configure_gated_counter | ( | self, | |
bin_width_s, | |||
record_length_s, | |||
preset = None , |
|||
cycles = None , |
|||
sequences = None |
|||
) |
Methods for gated counting ##########################################.
Configuration of the gated counter.
@param float bin_width_s: Length of a single time bin in the time trace histogram in seconds. @param float record_length_s: Total length of the timetrace/each single gate in seconds. @param int preset: optional, number of preset @param int cycles: optional, number of cycles @param int sequences: optional, number of sequences. @return tuple(binwidth_s, no_of_bins, cycles, preset, sequences): binwidth_s float the actual set binwidth in seconds no_of_bins Length in bins cycles Number of Cycles preset Number of preset sequences Number of sequences
def fastcomtecmcs6.FastComtec.configure_ssr_counter | ( | self, | |
counts_per_readout = None , |
|||
countlength = None |
|||
) |
Methods for SSR interface ####################################.
Configuration of the gated 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 | preset: optional, number of preset |
int | cycles: optional, number of cycles |
int | sequences: optional, number of sequences. |
def fastcomtecmcs6.FastComtec.continue_measure | ( | self | ) |
Continue a paused measurement.
def fastcomtecmcs6.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 fastcomtecmcs6.FastComtec.get_bitshift | ( | self | ) |
Get bitshift from Fastcomtec.
def fastcomtecmcs6.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 fastcomtecmcs6.FastComtec.get_cycles | ( | self | ) |
Gets the cycles.
def fastcomtecmcs6.FastComtec.get_delay_start | ( | self | ) |
Returns the current record delay length.
def fastcomtecmcs6.FastComtec.get_dimension | ( | self | ) |
Get the dimension of the 2D Trace.
def fastcomtecmcs6.FastComtec.get_length | ( | self | ) |
Get the length of the current measurement.
def fastcomtecmcs6.FastComtec.get_preset | ( | self | ) |
Gets the preset.
def fastcomtecmcs6.FastComtec.get_sequences | ( | self | ) |
Gets the cycles.
def fastcomtecmcs6.FastComtec.is_gated | ( | self | ) |
Check the gated counting possibility.
def fastcomtecmcs6.FastComtec.pause_measure | ( | self | ) |
Make a pause in the measurement, which can be continued.
def fastcomtecmcs6.FastComtec.save_data | ( | self, | |
filename | |||
) |
save the current settings and data
str | filename: Location and name of the savefile |
def fastcomtecmcs6.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 fastcomtecmcs6.FastComtec.set_bitshift | ( | self, | |
bitshift | |||
) |
Sets the bitshift properly for this card.
int | bitshift: |
def fastcomtecmcs6.FastComtec.set_cycle_mode | ( | self, | |
mode = True , |
|||
cycles = None |
|||
) |
Turns on or off the sequential cycle mode.
bool | mode: Set or unset cycle mode |
int | cycles: Optional, Change number of cycles |
def fastcomtecmcs6.FastComtec.set_cycles | ( | self, | |
cycles | |||
) |
Sets the cycles.
int | cycles: Total amount of cycles |
def fastcomtecmcs6.FastComtec.set_delay_start | ( | self, | |
delay_s | |||
) |
Sets the record delay length.
int | delay_s: Record delay after receiving a start trigger |
def fastcomtecmcs6.FastComtec.set_dimension | ( | self, | |
length, | |||
cycles | |||
) |
Get the dimension of the 2D Trace.
int | cycles: Vertical dimension in bins |
int | length: Horizontal dimension in bins |
def fastcomtecmcs6.FastComtec.set_gated | ( | self, | |
gated | |||
) |
Change the gated status of the fast counter.
def fastcomtecmcs6.FastComtec.set_length | ( | self, | |
length_bins | |||
) |
Sets the length of the length of the actual measurement.
int | length_bins: Length of the measurement in bins |
def fastcomtecmcs6.FastComtec.set_preset | ( | self, | |
preset | |||
) |
Sets the preset/.
int | preset: Preset in sweeps of starts |
def fastcomtecmcs6.FastComtec.set_preset_mode | ( | self, | |
mode = 16 , |
|||
preset = None |
|||
) |
Turns on or off a specific preset mode.
int | mode: O for off, 4 for sweep preset, 16 for start preset |
int | preset: Optional, change number of presets |
def fastcomtecmcs6.FastComtec.set_sequences | ( | self, | |
sequences | |||
) |
Sets the cycles.
int | cycles: Total amount of cycles |
def fastcomtecmcs6.FastComtec.start_measure | ( | self | ) |
Start the measurement.
def fastcomtecmcs6.FastComtec.stop_measure | ( | self | ) |
Stop the measurement.