| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| This folder has no files. | |||
| Totals: 0 Items | 0 | ||
QtPALS
Positron annihilation lifetime spectroscopy acquisition and analysis software for the DRS4 evaluation board.
Current release: 2026.11.11 — see CHANGELOG.md.
Download (Windows x64)
| File | Description |
|---|---|
| QtPALS-2026.11.11-x64-setup.exe (sourceforge.net) | Installer (recommended) |
| CHANGELOG.md (sourceforge.net) | Release notes |
Source repository: https://sourceforge.net/p/qtpals/code/
git clone https://git.code.sf.net/p/qtpals/code qtpals
License
QtPALS is free software under the GNU GPL v3 only (GPL-3.0-only).
See LICENSE and THIRD-PARTY-NOTICES.md for Qt, Qwt, libusb, DRS4 and ALGLIB.
Windows requirements
- Windows 10 or Windows 11, 64-bit
- DRS4 evaluation board (v3, v4 or v5; V3 has reduced trigger/scaler support)
- DRS4 USB driver via Zadig (WinUSB)
- Only one program may use the board at a time — close DRS Oscilloscope before starting QtPALS
Zadig (USB driver)
- Run Zadig as administrator, connect and power the board.
- Options → List All Devices → select the DRS4 entry (not keyboard/mouse/NIC).
- Target driver: WinUSB → Install / Replace Driver.
- Unplug/replug the board, verify once in DRS Oscilloscope, then close it.
Hardware setup
Pulses max ±0.5 V (use attenuators for larger pulses, e.g. Picotech TA050).
| Channel | Role |
|---|---|
| Ch1 | Start |
| Ch2 | Stop |
| Ch3 | Stop2 (optional, 3-detector) |
| Ch4 | Trigger input |
Use the CFD sum as trigger (Ortec 583/584), 20 dB attenuators, BNC tee. Calibrate amplitude/time in DRS Oscilloscope (±5 V, 5.12 GS/s), note trigger delay/level, then close DRS Oscilloscope.
First run in QtPALS
- Options → Configuration: 2D or 3D mode; INV / CFD fraction; trigger like in DRSOsc.
- Baseline / Peak / LE windows and pulse width: samples or nanoseconds.
- Start (play), set energy windows from E1–E3 histograms.
- New → measurement directory → run (default NTotal 1e6) → Save.
Spectra (summary)
2D: T1–T4 start/stop combinations on Ch1/Ch2.
3D: T1–T6 including averaged stops and stop–stop FWHM; optional CDB matrix T1 vs T2.
Paper: http://iopscience.iop.org/1742-6596/505/1/012044
doi:10.1088/1742-6596/505/1/012044
- DRS4 v4: modified FPGA firmware for internal trigger
- DRS4 v5: try RWTH firmware (not fully tested here)
- DRS4 V3: one common analog trigger; no per-channel scalers / latch delay / multi-trigger modes
File mode, ETB and logs
- Open:
*.dat(DRSOsc waveforms) or*.etb(compact E/T/B ± tc/T) - Record:
*.etb(reprocess energy windows offline) or*.dat(live waveforms only) - ETB does not store waveforms — Baseline/Peak/LE/CFD need
*.dator live acquisition - Logs:
<measurement dir>\qtpals_*.log, or%APPDATA%\PASLAB\QtPALS\logs - Crash dumps:
qtpals_crash_*.dmpnext to the log
Long runs / RDP
Buffer flush is done in the ADC thread (BufferFlushMs, default 1000 ms).
Keep Scope off or default ScopeIntervalMs over RDP.
Acquisition watchdog can restart a stalled USB/data path (ADCWatchdogTimeoutS, etc.).
2026.11.9: Watchdog USB recovery bounces only ADC (ETB stays open), settles before reopen, and retries ghost boards. Scalers refresh every 1 s.
2026.11.11: USB recovery — wedged-Init abort, full-restart fallback after
failed ADC-only bounce, Stop→Start deadlock fix (deleting old drs).
2026.11.10: code-review fix wave — non-blocking ETB replay, stopRecord via
queued connection, numerical guards (division-by-zero / OOB fixes), watchdog
armed on the trigger (Tr) rate only, and real MQTT connection state.
Building (Windows)
Tested: Qt 6.11.2, MSVC 2022 64-bit, Qwt 6.3, libusb 1.0, ALGLIB, DRS/.
build_installer.bat <path-to-deploy>
Produces QtPALS-2026.11.11-x64-setup.exe.
MQTT / Home Assistant
Topics (hostname = PC name):
devices/qtpals_<hostname>/statusdevices/qtpals_<hostname>/spectrum_complete
Status includes temperature, channel rates, T3 counts/target/ETA. Home Assistant MQTT discovery creates sensors for temperature, rates and T3.
Third-party
Qt, Qt MQTT, Qwt, libusb, PSI DRS4 library, ALGLIB — see THIRD-PARTY-NOTICES.md.