Examples Overview

TDC and DLD applications

The following examples are related to processing of event data (in a list-of-events form):

  • example_buffered_data_callbacks.py

    a very basic example, using the BUFFERED_DATA_CALLBACKS pipe, which has been introduced in scTDC library version 1.3010.0 to enable better performance in python than the USER_CALLBACKS pipe.

  • example_buffered_data_callbacks2.py

    computation of a histogram from the event data in python code using numpy and on-screen visualization using matplotlib

  • example_buffered_data_callbacks3.py

    much improved performance of the previous example

  • example_buffered_data_callbacks4.py

    data export to a text file for DLD events

  • example_buffered_data_callbacks5.py

    data export to a text file for TDC events

  • example_user_callbacks_interface.py

    Not recommended anymore.

The following examples demonstrate reading of histograms that are provided by the scTDC library

  • example_3d_pipe.py

    A 3D histogram of DLD event count versus detector position x, y and time of DLD event

  • example_xy_xt_yt_pipes.py

    2D histograms for DLD events

  • example_tdc_histo_pipe.py

    1D histograms for stand-alone TDCs

Camera applications

  • example_camera.py
    • setting of exposure parameters

    • starting a multiple-frame measurement

    • reading of image data and meta data

  • example_camera_blobs.py
    • setting parameters related to blob-mode

    • reading of meta data and blob data

Integration with Qt5 (PyQt5)

  • example_pyqt5_tdc.py

Miscellaneous

  • example_eom_callback.py

    using the (general) end-of-measurement notification

  • example_statistics_pipe.py

    read the “statistics” to obtain the number of pulses registered in the individual TDC channels and number of constructed DLD events (if applicable) during the last measurement. In case of delay-line detector applications, this is useful for diagnosis and to monitor the load on the MCP.