pyccapt.control.drs package
Submodules
pyccapt.control.drs.drs module
Python wrapper around the DRS digitizer board library.
Vendor / origin
The DRS evaluation board, the DRS.dll / libDRS shared library,
and the underlying DRS4 ASIC are products of the
Paul Scherrer Institute (PSI), Switzerland. The native source code
under pyccapt/control/drs/source/drs5_lib/ is PSI’s; it is
included here so PyCCAPT can be built on machines without a separate
DRS SDK install. See source/drs5_lib/ for PSI’s licence (the DRS
software is distributed under the GNU General Public License v3 with
the additional permission that linking against PSI’s drivers does not
constitute a derivative work).
This Python wrapper is local pyccapt code that calls into PSI’s library via ctypes.
- class pyccapt.control.drs.drs.DRS(trigger, test, delay, sample_frequency)[source]
Bases:
objectThis class sets up the parameters for the DRS group and allows users to read experiment DRS values.
Constructor function which initializes function parameters.
- Parameters:
trigger (int) – Trigger type. 0 for internal trigger, 1 for external trigger.
test (int) – Test mode. 0 for normal mode, 1 for test mode (connect 100 MHz clock to all channels).
delay (int) – Trigger delay in nanoseconds.
sample_frequency (float) – Sample frequency at which the data is being captured.
log (bool) – Enable logging.
log_path (str) – Path for logging.