PIXet Python SDK and control
pixet_ctrl.py is a local wrapper around pypixet, not a complete implementation of the PIXet Pro GUI. Initialization uses pypixet.start(), shutdown uses pypixet.exit(), and the connected device’s pixCfg() is retained.
Public method |
Purpose |
|---|---|
|
Open and close the device |
|
Map |
|
Set the energy threshold in keV |
|
Set the Timepix clock |
|
Set sensor bias |
|
Frame acquisition |
|
PIXet-native integral acquisition |
|
Stop and inspect state |
set_mode_all() maps to PX_TPXMODE_MEDIPIX, PX_TPXMODE_TOT, and PX_TPXMODE_TIMEPIX. Threshold is in keV, not a raw THL DAC code. The clock and bias setters forward values to PIXet; the supplied implementation does not validate safe ranges. Choose values based on the specific unit’s calibration and manufacturer specifications.
set_bias() checks the SDK return code but does not independently read back the actual bias or leakage current. Refer to the distributed PIXet SDK documentation for functionality beyond this wrapper.
Sources: supplied pixet_ctrl.py; PIXet Pro User’s Manual pp. 8–9, 13.