2023-05-24 16:04:32 -04:00
|
|
|
# Introduction
|
|
|
|
|
|
|
|
This is a DAQ for 1st gen CAEN digitizer for V1725, V17255S, V1230 with PHA and PSD firmware.
|
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
It has scope (updated every half-sec), allow full control of the digitizer (except LVDS), and allow saving waveform.
|
2023-05-24 16:04:32 -04:00
|
|
|
|
2023-05-25 14:20:55 -04:00
|
|
|
It can be connected to InfluxDB v1.8 and Elog.
|
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
# Undergoing
|
|
|
|
|
|
|
|
the following additional functions are planned and I am working on them
|
|
|
|
|
|
|
|
- 1-D and 2-D histogram
|
|
|
|
- Online Analyzer
|
|
|
|
- support V1740 DPP-QDC
|
|
|
|
- synchronization helper
|
|
|
|
|
2023-05-24 16:04:32 -04:00
|
|
|
# Required / Development enviroment
|
|
|
|
|
|
|
|
Ubuntu 22.04
|
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
- CAENVMELib_v3.3
|
|
|
|
- CAENCOmm_v1.5.3
|
|
|
|
- CAENDigitizer_v2.17.1
|
|
|
|
- CAEN A3818 Driver
|
2023-05-24 16:04:32 -04:00
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
- qt6-base-dev
|
|
|
|
- libqt6charts6-dec
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- elog
|
2023-05-24 16:04:32 -04:00
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
The CAEN Libraries need to download and install manually. The other libraries can be installed using the following command:
|
2023-05-24 16:04:32 -04:00
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
`sudo apt install qt6-base-dev libqt6charts6-dev libcurl4-openssl-dev elog`
|
2023-05-25 14:20:55 -04:00
|
|
|
|
|
|
|
The elog installed using apt is 3.1.3. If a higher version is needed. Please go to https://elog.psi.ch/elog/
|
|
|
|
|
|
|
|
The libcurl4 is need for pushing data to InfluxDB v1.8
|
2023-05-24 16:04:32 -04:00
|
|
|
|
2023-05-30 13:57:45 -04:00
|
|
|
The QCustomPlot (https://www.qcustomplot.com/index.php/introduction) source files are already included in the repository.
|
2023-05-30 10:08:39 -04:00
|
|
|
|
2023-05-24 16:04:32 -04:00
|
|
|
# Compile
|
|
|
|
|
|
|
|
use `qmake6 -project ` to generate the *.pro
|
|
|
|
|
|
|
|
in the *.pro, add
|
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
` QT += core widgets charts printsupport`
|
2023-05-24 16:04:32 -04:00
|
|
|
|
|
|
|
` LIBS += -lCAENDigitizer -lcurl`
|
|
|
|
|
|
|
|
then run ` qmake6 *.pro` it will generate Makefile
|
|
|
|
|
2023-05-31 17:30:46 -04:00
|
|
|
then ` make`
|
|
|
|
|
|
|
|
if you want to use GDB debugger, in the *.pro file add
|
|
|
|
|
|
|
|
` QMAKE_CXXFLAGS += -g`
|
|
|
|
|
|
|
|
## exclude some files from the auto-gen *.pro
|
|
|
|
|
|
|
|
The following files must be excluded from the *.pro, as they are not related to the GUI
|
|
|
|
|
|
|
|
- DataGenerator.cpp
|
|
|
|
- DataReaderScript.cpp
|
|
|
|
- EventBuilder.cpp
|
|
|
|
- test.cpp
|
|
|
|
- test_indep.cpp
|
|
|
|
|
|
|
|
Those file can be compiled using
|
|
|
|
|
|
|
|
`make -f Makefile_test`
|