|
22 | 22 | False,
|
23 | 23 | False,
|
24 | 24 | [
|
25 |
| - ("byteCounter", 0x203EA, 0, "U8"), |
26 |
| - ("wordCounter", 0x203EC, 0, "U16"), |
27 |
| - ("dwordCounter", 0x20410, 0, "U32"), |
28 |
| - ("sbyteCounter", 0x203EB, 0, "I8"), |
| 25 | + ("byteCounter", 0x00023648, 0, "U8"), |
| 26 | + ("wordCounter", 0x0002364C, 0, "U16"), |
| 27 | + ("dwordCounter", 0x00023650, 0, "U32"), |
| 28 | + ("sbyteCounter", 0x00023649, 0, "I8"), |
29 | 29 | ],
|
30 | 30 | ),
|
31 | 31 | DaqList(
|
32 | 32 | "part_2",
|
33 |
| - 0, |
| 33 | + 7, |
34 | 34 | False,
|
35 | 35 | False,
|
36 | 36 | [
|
37 |
| - ("swordCounter", 0x20414, 0, "I16"), |
38 |
| - ("sdwordCounter", 0x20418, 0, "I32"), |
39 |
| - ("channel1", 0x203F8, 0, "F64"), |
40 |
| - ("channel2", 0x20400, 0, "F64"), |
41 |
| - ("channel3", 0x20408, 0, "F64"), |
| 37 | + ("swordCounter", 0x00023654, 0, "I16"), |
| 38 | + ("sdwordCounter", 0x00023658, 0, "I32"), |
| 39 | + ("channel1", 0x00023630, 0, "F64"), |
| 40 | + ("channel2", 0x00023638, 0, "F64"), |
| 41 | + ("channel3", 0x00023640, 0, "F64"), |
42 | 42 | ],
|
43 | 43 | ),
|
44 | 44 | ]
|
|
117 | 117 | ),
|
118 | 118 | ]
|
119 | 119 |
|
120 |
| -# daq_parser = DaqToCsv(DAQ_LISTS) # Record to CSV file(s). |
121 |
| -daq_parser = DaqRecorder(DAQ_LISTS, "run_daq", 2) # Record to ".xmraw" file. |
| 120 | +daq_parser = DaqToCsv(DAQ_LISTS) # Record to CSV file(s). |
| 121 | +# daq_parser = DaqRecorder(DAQ_LISTS, "run_daq", 2) # Record to ".xmraw" file. |
122 | 122 |
|
123 | 123 | with ap.run(policy=daq_parser) as x:
|
124 | 124 | x.connect()
|
|
127 | 127 |
|
128 | 128 | x.cond_unlock("DAQ") # DAQ resource is locked in many cases.
|
129 | 129 |
|
| 130 | + DAQ_LISTS[1].event_num = 0 |
| 131 | + |
130 | 132 | print("setup DAQ lists.")
|
131 | 133 | daq_parser.setup() # Execute setup procedures.
|
132 | 134 | print("start DAQ lists.")
|
133 | 135 | daq_parser.start() # Start DAQ lists.
|
134 | 136 |
|
135 |
| - time.sleep(15.0 * 60.0) # Run for 15 minutes. |
| 137 | + time.sleep(5.0 * 60.0) # Run for 15 minutes. |
136 | 138 |
|
137 | 139 | print("Stop DAQ....")
|
138 | 140 | daq_parser.stop() # Stop DAQ lists.
|
|
0 commit comments