-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestDT5742B.py
More file actions
32 lines (26 loc) · 1.11 KB
/
testDT5742B.py
File metadata and controls
32 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#/ \file CLEAR_March/DT5742/clear/testDT5742B.py
#/ \brief Implementation of the DT5730 control + data acquisition
#/ \author Pietro Grutta (pietro.grutta@pd.infn.it)
from caendt5742b import CAENDT5742B
import queue
##############################################################
######## Setup ###############################################
##############################################################
# Event readout queue buffer
eventsReadout = queue.Queue()
# # Determine the usbLinkID of the digitizer
# dgt = CAENDT5742B(usbLinkID = 0, evtReadoutQueue = eventsReadout, eventCutoff=25)
# dgt.autoScan()
# exit()
# # Instance the CAENDT5742B controller class
dgt = CAENDT5742B(usbLinkID = 0, evtReadoutQueue = eventsReadout, eventCutoff=25)
# Open the digitizer, plot waveform and close the digitizer
dgt.testClass(2)
## Instance the CAENDT5742B controller class
#dgt = CAENDT5742B(usbLinkID = 0, evtReadoutQueue = eventsReadout, eventCutoff=25)
## Open digitizer
#dgt.open()
## Setup digitizer
#dgt.setupSimple(windowSize_s = 50e-6, triggerThres_V = 1.5, channelDCOffset_V = 0.)
#dgt.testClassWaveform(25)
#exit()