readout software for 2 channels [0 and 1] of the tdc-gpx2 board with raspberry pi 3B SPI readout. This code is a fork of the original design by marvin.peter@physik.uni-giessen.de https://github.com/marvin5300/tdc-gpx2_software
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. # Software for RPi compatible shield for TDC-GPX2 chip
  2. The TDC-GPX2 is a time-to-digital converter from ScioSense with up to 10ps timing accuracy. This software uses the linux kernel for GPIO and SPI-Bus to readout the GPX2 and calculate time intervals between signals. There is also the possibility of reading out the TDC using a FPGA which will then give much faster readout.
  3. # TDC-GPX2_Software
  4. Files for building readout software for the TDC-GPX2 from ScioSense.
  5. | Folder | Description |
  6. | ------ | ----------- |
  7. | source/gpx2-raspi-readout-program| Contains a readout loop, buffer and calculations to measure time intervals between two signals with good accuracy.
  8. | source/spi | Folder containing gpx2 source files for making the tdc board library containing all options and an high level access for readout.
  9. | scripts | python script makes a histogram of the output. requires matplotlib|
  10. | data | empty folder for output|
  11. <br>
  12. <strong>Readout via SPI:</strong>
  13. Required:
  14. - linux operating system (preferrably raspberry pi OS)
  15. - up-to-date c++ compiler (C++17 compatible), tested with clang 11 and newer
  16. How to build:
  17. - requires cmake
  18. - builds the gpx2 library and optionally the readout program
  19. ```sh
  20. cd source
  21. mkdir build
  22. cd build
  23. cmake ..
  24. cmake --build .
  25. ```
  26. to run the code:
  27. ```
  28. /// outputs to stdout
  29. ./bin/readout
  30. ///redirect to file
  31. ./bin/readout > ../data/test_out.data
  32. ```