Hardware Link (caen.dppp)
caen.dppp
High-level DPP-PHA parameter management, register programming, and acquisition modes.
DPP
Controller for CAEN DT5780 DPP-PHA board and channel configurations.
Manages parameter persistence (<SN>.cfg), unit-to-register scaling,
bitfield read-modify-write updates, automatic trapezoidal gain/rescaling
recalculation, and switching between oscilloscope and spectroscopy modes.
Attributes:
| Name | Type | Description |
|---|---|---|
TRT |
str
|
Parameter key for Trapezoid Rise Time. |
IDT |
str
|
Parameter key for Input Decay Time. |
SHF |
str
|
Parameter key for Trapezoid Rescaling shift. |
DGN |
str
|
Parameter key for Digital Gain. |
WorkShop |
dict
|
Auxiliary GUI and calibration settings stored alongside hardware state. |
Clock |
float
|
ADC sampling clock period in nanoseconds. |
Board |
dict
|
Board-level parameter definitions and current values. |
Channel |
dict
|
Channel-level DPP-PHA parameter definitions and current values. |
Mode |
str
|
Active operating mode ( |
FineGainMax |
list[float]
|
Maximum achievable fine gain per channel for current shaping times. |
Source code in caen/dppp.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | |
AcquisitionStatus()
Read status flags from the Acquisition Status register (0x8104).
Returns:
| Type | Description |
|---|---|
list[int]
|
List of 8 bit flags corresponding to bits |
Source code in caen/dppp.py
296 297 298 299 300 301 302 303 | |
BoardSetUp(device, DEBUG=False)
Reset the digitizer, load saved configuration, and program all registers.
Sets mandatory bits in register 0x8000 (including bit 24 to enable the
FORMAT word in aggregate headers) and applies all board and channel presets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
device |
TheBoard
|
Connected digitizer instance. |
required |
DEBUG |
bool
|
Print verbose register read/write logs during initialization. |
False
|
Source code in caen/dppp.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
LoadParameters()
Load board, channel, and GUI parameters from <SN>.cfg or create defaults.
Source code in caen/dppp.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
MonitorMode(DEBUG=False)
Configure the digitizer for oscilloscope mode with waveform capture enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
DEBUG |
bool
|
Enable verbose register logging. |
False
|
Source code in caen/dppp.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 | |
ReadOutMode(DEBUG=False)
Configure the digitizer for high-throughput spectroscopy list/histogram readout.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
DEBUG |
bool
|
Enable verbose register logging. |
False
|
Source code in caen/dppp.py
281 282 283 284 285 286 287 288 289 290 291 292 293 294 | |
SHGDGN(CH)
Recalculate Trapezoid Rescaling (SHF) and Digital Gain (DGN).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
CH |
int
|
Channel index ( |
required |
Source code in caen/dppp.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
SaveParameters()
Disarm acquisition and serialize all current parameters to <SN>.cfg.
Source code in caen/dppp.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
SetBoardParameter(P, V, DEBUG=False)
Update a board-level parameter value in memory and write it to hardware.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P |
str
|
Board parameter name. |
required |
V |
Any
|
New parameter value in physical or symbolic units. |
required |
DEBUG |
bool
|
Enable verbose register logging. |
False
|
Source code in caen/dppp.py
239 240 241 242 243 244 245 246 247 248 | |
SetChannelParameter(P, CH, V, DEBUG=False)
Update a channel-level parameter value and program the corresponding register(s).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P |
str
|
Channel parameter name. |
required |
CH |
int
|
Channel index ( |
required |
V |
Any
|
New parameter value. |
required |
DEBUG |
bool
|
Enable verbose register logging. |
False
|
Source code in caen/dppp.py
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
StartAcquisition()
Arm the digitizer and start data acquisition.
Source code in caen/dppp.py
305 306 307 | |
StopAcquisition()
Disarm the digitizer and stop data acquisition.
Source code in caen/dppp.py
309 310 311 | |
WriteParameter(P, CH=0, DEBUG=False)
Convert a parameter value to register counts and write it to the board.
Performs read-modify-write masking for bitfield registers, waits for the
channel SPI busy flag (bit 2 of 0x1n88) before updating DC Offset,
and recursively updates Trapezoid Rescaling and Digital Gain when
shaping or decay times change.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P |
str
|
Parameter name from |
required |
CH |
int
|
Channel index ( |
0
|
DEBUG |
bool
|
Print register addresses, bitmasks, and raw values. |
False
|
Source code in caen/dppp.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | |