pyccapt.control.tdc_roentdek package

Submodules

pyccapt.control.tdc_roentdek.cobold_tool module

pyccapt.control.tdc_roentdek.cobold_tool.copy_xytof_from_cobold_txt_to_hdf5(txt_path, save_path)[source]

Copy x, y, tof, multi event data from Cobold text file to an existing HDF5 file.

Parameters:
  • txt_path (str) – Path to the Cobold text file.

  • save_path (str) – Path to the save file.

Returns:

None

pyccapt.control.tdc_roentdek.cobold_tool.laser_pulse_energy_from_mat_file(mat_path, source_file, target_file)[source]
pyccapt.control.tdc_roentdek.cobold_tool.rename_a_category(file_path, old_name, new_name)[source]

pyccapt.control.tdc_roentdek.tdc_roentdek module

class pyccapt.control.tdc_roentdek.tdc_roentdek.TDC(tdc_lib, buf_size=30000, time_out=300)[source]

Bases: object

This class sets up the parameters for the TDC and allows users to read experiment TDC values.

Constructor function which initializes function parameters.

Parameters:
  • tdc_lib (ctypes.CDLL) – The TDC library.

  • buf_size (int) – Buffer size.

  • time_out (int) – Timeout value.

get_data_tdc_buf()[source]

Get data from the TDC buffer.

Returns:

Data from the TDC buffer.

Return type:

np.ndarray

init_tdc()[source]

Initialize the TDC.

Returns:

Return code.

Return type:

int

run_tdc()[source]

Run the TDC.

stop_tdc()[source]

Stop the TDC.

Returns:

Return code.

Return type:

int

pyccapt.control.tdc_roentdek.tdc_roentdek.experiment_measure(variables, x_plot, y_plot, t_plot, main_v_dc_plot, stop_event)[source]

Measurement function: This function is called in a process to read data from the queue.

Parameters:

variables – Variables object

Returns:

Return code.

Return type:

int

Module contents