strutture:lnf:da:btf:dispositivi:daq:data_format
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
strutture:lnf:da:btf:dispositivi:daq:data_format [2011/04/20 22:41] – foggetta@infn.it | strutture:lnf:da:btf:dispositivi:daq:data_format [2024/06/27 19:07] (current) – foggetta@infn.it | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BTF-DAQ data specification ====== | ||
+ | | ||
+ | The BTF-DAQ is a dynamic composition of different modules, each one of those is run-time switchable on and off\\ | ||
+ | Here is a standard configuration, | ||
+ | - Delay Programmable Unit | ||
+ | - Scaler | ||
+ | - Silicon Microstrip chamber | ||
+ | - Peak Detector | ||
+ | - QDC | ||
+ | - TDC | ||
+ | For more info see [[strutture: | ||
+ | |||
+ | Here a sample of one line in output from BTF DAQ\\ | ||
+ | |||
+ | This example datastream has: | ||
+ | - SINGLE event mode: one event(ok trigger) per buffer | ||
+ | - only one running board (QDC2) | ||
+ | |||
+ | |||
+ | |||
+ | Here an example row of the datastream (\n unix terminated): | ||
+ | **1 73 0 0 0 1 0 0 0 0**__ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16375 8471 0 10 18775 19964__ **42 314 134 1065 106 816 106 833 151 1180 134 1034 145 1168 30 251 131 1038 134 1076 159 1231 154 1232 146 1118 164 1262 141 1118 149 1182** __0 -1697888 165123 1 1 1__ | ||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | //**SINGLE event mode**// | ||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | **Data stream Header + Word number per event + Active DAQ Boards List**\\ | ||
+ | ***1 73 0 0 0 1 0 0 0 0** | ||
+ | |||
+ | |||
+ | The first data in the data stream row is the "event per row" and it is the header of the each row in the data stream, recording the number of event acquired per DAQ Cycle (row) | ||
+ | |||
+ | event per row (1) + event number of data word space separated (73)+ agile silicon on/off (1/0) + peak sensitive on/off (1/0) + qdc1 on/off (1/0) + qdc2 on/off (1/0) + tdc1 on/off (1/0) + qdc3 on/off (1/0) + tdc2 on/off (1/0) + spare on/off (1/0)\\ | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | **Default scaler data**\\ | ||
+ | *__0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16375 8471 0 10 18775 19964__ | ||
+ | |||
+ | These 32 words belonging to the BTF scaler and they are included in the datastream as default:\\ | ||
+ | * First word is scaler channel1 (data=0) (counting is reset on DAQ restart every time) | ||
+ | * the last is scaler channel 32 (data=19964) (counting is reset on DAQ restart every time) | ||
+ | * word 31 and 32 are, respectively, | ||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | **DAQ Active Board data**\\ | ||
+ | ***42 314 134 1065 106 816 106 833 151 1180 134 1034 145 1168 30 251 131 1038 134 1076 159 1231 154 1232 146 1118 164 1262 141 1118 149 1182** | ||
+ | |||
+ | These are 32 word belonging to the V965 16 channels (it is, in this example, the only active element in addition to the scaler: | ||
+ | BTF version of the V965 has 16 charge coupled channels (chXX-hirange chXX-lowrange): | ||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | **Timing data**\\ | ||
+ | *__0 1520898866 __ | ||
+ | |||
+ | are BTF machine and DAFNE status | ||
+ | * 0 every time, | ||
+ | * 1520898866 time in ms from DAQ start | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | **Data stream Tail**\\ | ||
+ | *__1 1 1__ | ||
+ | |||
+ | * 1 1 1 is, respectively: | ||
+ | * electron/ | ||
+ | * modulator on/off(1/0) | ||
+ | * gun on/off(1/0) | ||
+ | |||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | ---- | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | //**MULTI event mode**// | ||
+ | In this case more event are acquired before saved in a single file row\\ | ||
+ | In this case the row datastream structure is:\\ | ||
+ | * Data stream Header = N = data "event per row" is more than 1, number of event acquired per each DAQ writing cycle | ||
+ | * N*(Word number per event + Active DAQ Boards list + Default scaler data + DAQ Active Board data + Timing data ) | ||
+ | * Data stream Tail |