ID |
Date |
Author |
Category |
Subject |
1
|
Fri Jun 28 10:05:05 2019 |
Jan | DAQ | running DRASI for (p,g) |
We now have a drasi DAQ running for our (p,g) experiments.
The RIO we have it installed right now is: r4l-58
It shall be used with the user <litv-exp>
The DAQ-controle shall be done from lxg1275 inside a SCREEN SESSION named "daq"
tab 0 >> drasi
tab 1 >> logger
tab 2 >> rate
tab 3 >> stream server
tab 4 >> file writing (optional)
To check and control running daq:
login on lxg1275
> ssh litv-exp@lxg1275
enter screen session
> screen -x daq
DRASI
go to tab 0
> ctrl-a 0
should be quite, no errors showing, no terminal outputs
full restart proceedure
> ssh r4l-58
> cd esrdaq_2018/r4l-58
> ./start.sh (for det. triggered daq)
> ./pulser.sh (for internal pulser trigger)
> ctrl-c (for killing daq)
LOGGER
go to tab 1
> ctrl-a 1
should be quite, no errors showing, no terminal outputs
full restart proceedure
> ssh r4l-58
> cd esrdaq_2018/r4l-58
> ./logger.sh
RATE MONITOR
go to tab 2
> ctrl-a 2
rates should update each second
"incr" should be event rate per sec
"send" column should be reasonable value if data is written
full restart proceedure
> ssh r4l-58
> cd esrdaq_2018/r4l-58
> ./rate.sh
EMPTY STREAM SERVER
go to tab 3
> ctrl-a 3
empty stream should be running
number of processed events should keep increasing
you should see the number of clients connected
full restart proceedure (on lxg1275)
> empty stream://r4l-58 --server=stream:6002
WRITE A FILE
can be done by litv-exp from any lgx-machine
ROOT FILE:
> e127_unpack --stream=lxg1275 --ntuple=RAW,/data.local1/e127/pre_data/file.root
LMD FILE:
> e127_unpack --stream=lxg1275 --output=/data.local1/e127/pre_data/test.lmd
COMMENT: better use a transport server for reliable data writing: https://elog.gsi.de/esr/NucAR+lab/2 |
2
|
Fri Jun 28 10:07:01 2019 |
Jan | DAQ | ucesb: transport & stream servers |
TRANSPORT SERVER
> for writing lmd files
the transport servers provided by ucesb are made for reliable data writing. This means the will not miss any
data processed by the daq, but the data taking of the daq will be limited by the writing speed.
STREAM SERVER
> for online/quick check
the stream is able to neglect events which the client cannot process fast enough. So events/data will be missing
if writing is slower than data taking. This is good for online monitors etc. |
Draft
|
Fri Jun 28 10:39:06 2019 |
Jan | DAQ | vulom config and readout |
with the DRASI environment one can interact with the vulom |
4
|
Tue Oct 29 10:40:57 2019 |
Jan | SlowControl | Caen HV DT1419ET Downloads |
Attached are all downloads available for the DT1419ET from CAEN on 29.10.19. |
Attachment 1: CAENUSBVCP-Drv-2.2.zip
|
Attachment 2: Linux_driver_NDT14XX_N14XXET_N568E_Read_me.txt
|
-----------------------------------------------------------------------------
--- CAEN SpA - Computing Systems Division ---
-----------------------------------------------------------------------------
CAEN DT55xxE - DT/R/N14xxET - NDT14xx - N1570 - N568E Linux 32/64bit USB Linux Driver Information
-----------------------------------------------------------------------------
System Required
-------------------
- Linux OS
- CAEN USB Card:
- NIM High Voltage Power Supplies:
> N1419ET - 4 Channel 500 V/200 µA NIM HV Power Supply Module (USB/Ethernet/T.screen)
> N1470ET - 4 Channel 8 kV/3 mA (8 W) NIM HV Power Supply Module (USB/Ethernet/T.screen)
> N1471ET - 4 Channel 5.5 kV/300 µA NIM HV Power Supply Module (USB/Ethernet/T.screen)
> N1471HET - 4 Channel 5.5 kV/20 µA NIM HV Power Supply High Accuracy Module (USB/Ethernet/T.screen)
> N1570 - 2 Channel 15 kV/1 mA (10 W) NIM HV Power Supply Module (USB/Ethernet/T.screen)
- NIM/Desktop High Voltage Power Supplies:
> NDT1419 - 4 Channel 500 V/200 µA NIM/Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> NDT1470 - 4 Channel 8 kV/3 mA (8 W) NIM/Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> NDT1471 - 4 Channel 5.5 kV/300 µA NIM/Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> NDT1471H - 4 Channel 5.5 kV/20 µA NIM/Desktop HV Power Supply High Accuracy Module (USB/Ethernet/T.screen)
- Rack-mount High Voltage Power Supplies
> R1419ET - 8/4 Ch Reversible 500 V/200 µA 19'' HV Power Supply Module (USB/Ethernet/T.screen)
> R1470ET - 8/4 Ch Reversible 8 kV/3 mA (8 W) Desktop 19'' Power Supply Module (USB/Ethernet/T.screen)
> R1471ET - 8/4 Ch Reversible 5.5 kV/300 µA Desktop 19'' Power Supply Module (USB/Ethernet/T.screen)
> R1471HET - 8/4 Ch Reversible 5.5 kV/20 µA 19'' HV Power Supply High Accuracy Module (USB/Ethernet/T.screen)
- Desktop High Voltage Power Supplies
> DT1419ET - 4 Ch Reversible 500 V/200 µA Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> DT1470ET - 4 Ch Reversible 8 kV/3 mA (8 W) Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> DT1471ET - 4 Ch Reversible 5.5 kV/300 µA Desktop HV Power Supply Module (USB/Ethernet/T.screen)
> DT1471HET - 4 Ch Reversible 5.5 kV/20 µA Desktop HV Power Supply High Accuracy Module (USB/Ethernet/T.screen)
> DT5519E - 4 Channel 500 V/3 mA Desktop HV Power Supply Module (USB/Ethernet)
> DT5521E - 4 Channel 6 kV/300 µA Desktop HV Power Supply Module (USB/Ethernet)
> DT5521HE - 4 Channel 6 kV/20 µA Desktop HV Power Supply Module (USB/Ethernet)
> DT5533E - 4 Channel 4 kV/3 mA (4 W) Desktop HV Power Supply Module (USB/Ethernet)
> DT5534E - 4 Channel 6 kV/1 mA (4 W) Desktop HV Power Supply Module (USB/Ethernet)
- NIM Spectroscopy Amplifiers
> N568E/N568ELC 16 Channel Programmable Spectroscopy Amplifier
Description
-----------
CAEN Modules listed above are conform to USB Communication Device Class Abstract Control Model
(= USB CDC ACM) that is supported by Linux kernel since version 2.6.x
If recognized by Linux OS, CAEN Module is assigned to serial port with name /dev/ttyACM[x], where [x] is device number;
for example 1st module connected is /dev/ttyACM0, 2nd module is /dev/ttyACM1 etc. See more details with the dmesg command.
In some Linux distributions the module is not recognized and it has to be added manually with the command:
modprobe usbserial vendor=0x21e1 product= [id]
The product id can be found running the command dmesg after connecting the module.
Once added the module, to get the serial port name (e.g. ttyUSB0), use dmesg command.
How to get support
------------------
For software support
- visit the page http://www.caen.it/csite/ProductSupport.jsp
- or send mail to: support.computing@caen.it
|
Attachment 3: R14xx_rev10.pdf
|
|
Attachment 4: HV_Wrapper_REV16.pdf
|
|
Attachment 5: CAENHVWrapper-5.82(1).tar.gz
|
Attachment 6: CAENHVWrapperSetup-5.82(1).exe
|
Attachment 7: UM2463_GECO2020_REV10.pdf
|
|
Attachment 8: CAENGECO2020-1.9.1-build20190708.zip
|
Attachment 9: CAENGECO2020-1.9.1-build20190708.tgz
|
Attachment 10: PSM_LVDRIVERS_rev0.pdf
|
|
Attachment 11: CAEN_PSM-InstrumentDriver-1.0.2.zip
|
Attachment 12: CAEN_PSM-ControlSoftware-Setup-1.2-build150211.zip
|
Attachment 13: CAENNDT_ioc-1.0(1).tar.gz
|
Attachment 14: DT1419ET.105
|
:020000040000fa
:080000000032040000000000c2
:020000040000fa
:106400002f3026000eff27000e018800000000003c
:106410000c000700c0aa2300210020000f00070085
:10642000000020000000e000020032000000020036
:10643000000000000a530200010000000040da00e2
:106440000000fe0060e524000000e00002003200d1
:10645000102020009001880000000600a1028800a2
:10646000800078000000eb001a003700e280400056
:1064700054a0b4009101ba00e280400054a0b400de
:106480009102ba00e280400054a0b4000002eb0088
:10649000472bde00f507b200a6018800602ce10062
:1064a00008003a000049eb000201e8000200390050
:1064b0003420ec0002f0a0008301e900f9ff3e0067
:1064c000040037006128e100010032000082eb0087
:1064d000040007001101ba000200e000e3ff3a00e7
:1064e0000000060004d0a300e20f49001c003900a0
:1064f000810278003549ba000201e8000200390043
:106500003420ec0002f0a0008301e9000f0032000b
:106510002549ba000201e800020039003420ec00ed
:1065200002f0a0008301e900080032000400e0004e
:106530000600320015c9ba000201e8000200390065
:106540003420ec0002f0a0008301e9008180e80023
:1065500054a0b4000300e000e2ff3a00000006008f
:106560009102ba00055978008301e900f7ff320073
:10657000c82ade00055978008301e900f3ff3200e4
:106580000400e000f1ff320011d9ba00eeff37003d
:106590003e93040002000000f89204000200000094
:1065a0003293040002000000f862040002000000c0
:1065b0009c610400020000007861040002000000f9
:1065c0004068040002000000aa6704000200000006
:1065d000dc67040002000000fe6604000200000008
:1065e000068b040002000000d48a040002000000b0
:1065f000ae860400020000007c8604000200000059
:106600003c7a040002000000167904000200000039
:10661000fc78040002000000020ab900001bb90067
:106620000200b80081004200810043000000060023
:10663000800078001106b100030035009101b1001f
:1066400001003c000050a100000006001004b10051
:10665000030035009001b10001003c00100005006e
:1066600000000500800078001104b100030035002f
:106670009101b10001003c000050a00000000600a4
:106680001004b100070035009001b100040034008f
:106690007000b100030035009001b10001003c0022
:1066a00010000500000005006900e100040035004d
:1066b0006d00e100030034000002b100010032006f
:1066c0000000050010000500889fbe0080047800cf
:1066d000b0fe81000000e00003003a0080000700e7
:1066e0000000e0000a003500b0fe81000900e00073
:1066f00002003a0000047800060037000004780029
:1067000009004000760007000000e00001003d00a5
:106710000084eb00080078004f04be000000060073
:106720000a00fa0080017800e20f500028003e00c5
:10673000c0fe8100e10f50000800320080232000dd
:106740000000e00005003200042320002523200083
:106750004623200080017800040037000422200036
:106760002522200046222000832220001440900091
:106770000004e000040035008009eb0014409000a4
:106780000074a00010429800154090000028a3005b
:1067900003003a00154090000024a00090429800a9
:1067a0008001eb0007003700154090000008a300af
:1067b000fdff320063c078000000fb00000b780092
:1067c0008301e800828f5100f7ff3a00080037008c
:1067d00030002000b0bf9f00c3bf9f00d1bf9f000b
:1067e000e2bf9f006a80570000c0da006fb99700cf
:1067f000020078000080fa00000006000a00fa009b
:10680000881f7800800178000000e00029003a002d
:10681000c0fe8100e10f50000800320080232000fc
:106820000000e000050032000423200025232000a2
:106830006723200080017800040037000422200034
:10684000252220006722200083222000144090008f
:106850000004e000040035008009eb0014409000c3
:106860000074a000104298000002eb000c003700fa
:10687000130a2000154478006140640002003a00c9
:106880008301e900fbff3a000402e800954178002b
:1068900061c0610005003200170078008058780060
:1068a00004035100820f5200f1ff3a00060051002c
:1068b0000800370020002000a0bf9f00b3bf9f004a
:1068c000c1bf9f00d2bf9f006c80570000c0da009c
:1068d0005fb897004f0478000080fa0000000600bf
:1068e000800078000000e00004003a00a0fd2300d2
:1068f000b0fe890001017800060037000081eb003e
:1069000020302600808f500002003e00b1fe89003a
:106910000001eb000200780000000600839f680081
:106920000100e00002003d0060001000e08018005f
:106930000300e00002003d0060011100e081190049
:106940002a0207004f00e00002003b006000100038
:10695000e080180000000600889fbe008a9fbe00ed
:10696000010578000100e0000400350008003c004b
:106970000000e00020003200050037006000100039
:10698000e080180002003b0001f02c001a003700e4
:106990000004be006011b8006b0920000982cf001e
:1069a000020039000882cf000441b0006942520061
:1069b0000e00320008003b0082817100610164001a
:1069c0008904d1000884d3008b05e8000442e80064
:1069d000f9ff3a00050037000804440089844c00a0
:1069e0008b05e9000442e900fbff3a000f020700b3
:1069f0000af0a70001f0a0004f05be004f04be0042
:106a00000000060003f0a200889fbe008a9fbe001f
:106a10008c1f78002b020700320233006450e10023
:106a20004f0032006420e1005200320003826c000b
:106a300007003b000905d0000306d000820f540078
:106a40000c065d0002003900020032008901780066
:106a5000030678008582550004003d000003fd0018
:106a60008103fd008502ea008b854200840f7200dd
:106a700002003b0060001000e08018006011b800c8
:106a80000005eb007a28e1000a00390006007800d2
:106a9000c75ddd00f707b200878075002d00370065
:106aa000828171000a017800610560008180d10057
:106ab0000080d3008502e900f9ff3b000604400096
:106ac0008784480002003b0060041400e0841c003e
:106ad0000988a300070032008a8171008281710059
:106ae000610164008904d1000884d3008b05e800ab
:106af000170037000978a30013003a000b00e000ec
:106b0000130034008b05e9000804440089844c001c
:106b10000a4474000978a3000d003a000b00e0005d
:106b2000070034008b05e9000804440089844c0008
:106b300001003a000b0020000978a300f7ff3200a3
:106b40000001eb0002003700828171000a01780029
:106b5000b60107000cf0a70001f0a000ea01370021
:106b60006420e10002003a00838f6c00ea013300e8
:106b70000801be000200be00e3013700889fbe008e
:106b80008a9fbe008c1f7800ce010700d50133001c
:106b900003866c006450e1002e0032006420e100a6
:106ba000330032006150e1002f0032006120e1002b
:106bb0003100320085855500eb07b0000900200048
:106bc00008042000050037000804440089844c00b4
:106bd0000a0031000603430087834b000001530085
:106be00081815b00f8ff33000203be000800a000b3
:106bf0000804440089844c00f6ff3900c639dd00e2
:106c00008301730001003200130020008904d100c9
:106c10000884d3000998a300050032000800a700eb
:106c20000300a0008904d1000884d3008b05e8008c
:106c30008904d1000884d3000001eb000281d20056
:106c40007a01070001f0a1000cf0a70001f0a000fc
:106c5000ad0137006420e100af0132000801be0041
:106c60000200be00f7ff37006120e100aa013200f8
:106c70006000b800f3ff37000000200001f8270093
:106c8000f0ff3700889fbe008a9fbe008c1f7800ef
:106c90008c0107009301330003866c006450e1000f
:106ca000240032006420e100270032006150e1003e
:106cb000220032006120e100210032008b85420079
:106cc000eb07b1000134b800003ab80008044200f4
:106cd00089844a00013ab8000030b800888040003a
:106ce00009014a0004003300000040008180480090
:106cf000020149008b05e900c909dd00830170002c
:106d00000100320013002000c814de004814dd002a
:106d10004709de001200b200c808de0008847000d7
:106d20004201070001f0a1000cf0a70001f0a00053
:106d3000750137006120e100770132000801be00d3
:106d40000200be00f7ff37006150e100fcff3a008f
:106d5000710137000001be00720107000470a70036
:106d600003f0a10003f8a30013003a006509b10085
:106d700010003200090035006928e10002003500ea
:106d8000010028000000050000004000818048004c
:106d90008502e900fcff3a0000000600f88f42007f
:106da000050035008100d1000080d3008502e80095
:106db000fcff3a00000006008000eb000000050028
:106dc000881f7800000478005001be004000be001b
:106dd0000400400085804800060149008781490081
:106de000009cbe000294be000400e1000588e100a2
:106df0000690e1000798e1000200310068004400bd
:106e00001008e8004f04780000000600f4874700ef
:106e1000889fbe008a9fbe008c9fbe008e1f780098
:106e20000205be000004be00d4b79f00e5b79f0076
:106e3000f6b79f0087bf9f000000eb00c0b79f0020
:106e4000b0b79f00a0b79f0090b79f0080b79f008a
:106e50000d042000bfb097004fb097000001400024
:106e60000000e0000f003d004f08de000000710050
:106e7000c0b79f009e00070001003d0012002000e7
:106e8000a100070001003d0012002000a60007003d
:106e9000b1000700b60007000f004000c8ff070060
:106ea000220037004f08de0000067100ccb79f00bb
:106eb0008f00070001003d00120020009200070033
:106ec00001003d001200200097000700a20007000b
:106ed0000fb297009fb297002fb39700bfb39700f0
:106ee000a90007000000520081805a0002015b00e7
:106ef00083815b0080b79f0091b79f00a2b79f007e
:106f0000b3b79f000007eb009f0007000020e100df
:106f100001a8e10002b0e10003b8e1000100310086
:106f20001e0020000e005600c0b79f004fb2970011
:106f30000400e000070035001000200001002000e0
:106f40006011b80008047000898470000a0571009f
:106f50008b8571008d06e900beff3a000400e00059
:106f600003003d00820007000f00400094ff07006f
:106f70004fa897000000e00004003a000fb497000b
:106f80009fb497002fb59700bfb5970094000700f6
:106f90004f0778004f06be004f05be004f04be00ed
:106fa0004f01b10000000600881f78001800200083
:106fb000881f780095ff07008f87e9004f0478004d
:106fc00000000600801feb0090ff07008f87e9009c
:106fd00000000600889fbe008a9fbe008c1f7800bc
:106fe0006e00070007003d0073000700e00f5b0024
:106ff000e08f5b0007003d00320007000006eb0059
:10700000040037003400070002003d002a0007009a
:107010001c00200072000700e3ff07000203be000f
:107020000002be000c00e000010032002200070058
:107030000400be000601be004f0678004f05be00ea
:107040004f04be0000000600889fbe008a9fbe005d
:107050008c1f78005100070005003d005600070016
:10706000e00f5b00e08f5b0006003d00040037008e
:107070001900070003003d006000b8006011b8006f
:107080001000070056000700ceff07000203be00f5
:107090000002be000c00e000010032000600070004
:1070a0000400be000601be004f0678004f05be007a
:1070b0004f04be00000006006000b8006011b80078
:1070c0000000370004025000858258000603590072
:1070d00087835900000006000006eb00e00f520015
:1070e000e08f5a00e00f5b00e08f5b0000000600bd
:1070f0000180400090b79f000001eb008fb0970027
:107100000100e000000006000200700090b79f0040
:107110000180400080b79f000001eb00ffa89700ae
:107120000100e000000006000200700080b79f0030
:10713000018040006faa9700cf20de0001007000a0
:10714000f0af9f0004024200250007004f18de0048
:107150000002720000000600e4af9f000804440033
:1071600089844c000a054d008b854d000000060007
:107170003fb29700cfb297005fb39700efb397008d
:1071800000fe2f00000006003fb09700cfb0970030
:107190005fb19700efb19700000006000205be0046
:1071a0000004be00e00f5000e08f5800e00f5900cf
:1071b000e08f5900000006006000b8006011b800c0
:1071c00008045000898458000a0559008b8559002d
:1071d0001c002000e00f5200e08f5a000000060063
:1071e0000800be000a01be00000006006022b800d0
:1071f000060220000000d0008180d2000482d2006c
:107200008582d2000000a0000202520083825a0050
:10721000030031000202420083824a000000a10004
:107220000603e900f3ff3a00000006008100200099
:10723000618055000b003d000b00200061fe2f0017
:107240000100e1001d0034008281710061016400d1
:107250008904d1000884d3000000e800faff3a0056
:1072600071002000610064000300700002006000f3
:107270000900320061044400e0844c000988a50044
:10728000050032008b05e8006808e10002003a00c2
:107290008904d1000884d300f20f20000258e100d5
:1072a00005003d00c75ddd00f907b200898075006b
:1072b00008007800000006000bf827008b0078001b
:1072c000000005000004be00160007000003be0019
:1072d0000405be000200be0012000700844f7500c6
:1072e000000006000200be006450e1000500360008
:1072f0006420e100020036000968a30001003a00a2
:107300000800be000160a0004f0678004f05be00d7
:107310004f04be0000000600f0ff2f00f1ff270021
:10732000f9ff3700c70ade00f107b200f50fb2001f
:1073300008003200e1cf4200020032000170a000dc
:1073400024000500810f70000100320004080500d0
:1073500044000500810f700002003a00140005008f
:107360008502e9000000400081c04800fcff3b00ae
:107370000170a000240005002800fa00889fbe00cc
:107380008a9fbe008c9fbe0003866b0039020700f7
:107390000028a30064003a000128a30067003a0017
:1073a0000008a30062003a000108a30065003a004b
:1073b0001e009000be08900081064000ed3fb10025
:1073c000f4805700ee019000111ab8008e09900069
:1073d000311bb8009e099000311cb800511db80047
:1073e000f485570046000700fe0190003a000700b0
:1073f0008b85e8003e0007008e09900040000700e2
:10740000ee019000340007008b85e800380007008b
:107410008e099000400007009e0990001b18b800dc
:10742000890440000a854800fe01900034000700ee
:107430008b85e80038000700ee019000300007005f
:107440008e0990001b18b800890440000a85480086
:107450000a98a30008003a000402420085824a000c
:1074600006034b0087834b0008044c0089844c00c2
:107470000a054d008d06e9008482720085027300c2
:107480004c3add0085027200010032001500200038
:10749000443ade001400b2004538de00cb45dd0082
:1074a0000b007000c540de00cb4ddd008b8070000e
:1074b0004549de00cb55dd000b017100c551de00f2
:1074c0000d0378000402070003f0a1000cf0a700f0
:1074d00003f0a000fb0137001b18b8008502400034
:1074e00006834800e0834b0060044c00070037002f
:1074f0001b18b8000603400087834800faff3700d6
:107500001b18b8008703400008844800e0844c0042
:1075100060054d00000006001b18b800080440007c
:1075200089844800faff37000108a300e2013a000d
:107530005800be005801be00e3ff37000008a3005a
:10754000dd013a0009047800f9ff37008103780073
:1075500074ff07000001be006000b8000478a300bb
:1075600013003a006220e10015003e000d003900d2
:107570008301d1000281d3008180d3008301d10037
:107580000281d3008180d3008301d1000281d30026
:107590008180d3000538b000c42add00f300b200ba
:1075a0008381720007f0a70003f0a000000006002e
:1075b000f3ff2700f2ff2f006110b900fbff370037
:1075c00003ff2700f7ff37008f1fd100ee010700f0
:1075d0008f87e9000000e00000000600801feb003c
:1075e000e90107008f87e9000000e00000000600c5
:1075f0001400fa00889fbe008a9fbe008c9fbe00c8
:107600000005be000206be00680047000c90be00e8
:107610000a90be00050207006400e1001a00320073
:1076200016003e006100e1001a0032006e04900076
:10763000fe0490000e0b90009e0b90006011b800ad
:107640009e0590000b38b100d501200082817100a9
:10765000610164008703d1000683d3008984d300cd
:107660000884d3008502e900f8ff3a00effe070026
:107670000df0a70001f0a00092013700f1ff2700f4
:10768000f0ff2f008f01370001f8270000002000d5
... 19656 more lines ...
|
5
|
Tue Oct 29 16:50:12 2019 |
Jan | SlowControl | RasPi backups |
Using this commands i made an image of an sd card of the epics_pi_v0:
sudo dd bs=4M if=/dev/mmcblk0 | gzip > /home/litv-exp/slow_control/sd_card_backups/epics_pi_v0.gz
To make clones of the sd card use the command:
sudo gzip -dc /home/litv-exp/slow_control/sd_card_backups/epics_pi_v0.gz | dd bs=4M of=/dev/mmcblk0
This was done on astrum1 laptop (ATPNBG004). |
6
|
Mon Nov 4 09:14:10 2019 |
Jan | DAQ | changing VME hardware of the DAQ (drasi) |
Here is a brief description of how to change the VME hardware of an exisiting DAQ system to a new configuration.
Our DAQ folders are located in /lynx/Lynx/esr/usr/litv-exp/
The current DAQ running on a specific rio4 is always located in a subfolder named as the hostname of the rio4, e.g. r4l-58.
If you want to change the DAQ on this rio you have to change the config in this folder. Be aware, that the folder name HAS TO BE THE HOSTNAME, no exeptions are allowed! Because of this the r4l-XX folders are usually softlinks to further folders, that contain different versions of the DAQ.
In practice this means:
1. copy the current folder (e.g. r4l-58_dev) to a new one (e.g. r4l-58_new) and make sure that the link (r4l-58) is set to your new folder (ln -s /../r4l-58_new /../r4l-58)
2. change the hardware of your VME crate and check all VME addresses
3. edit main.cfg in your new DAQ folder, see the example attached here
- always have a BARRIER between the modules
- make sure you get the VME addresses right (MesyTec, CAEN board specialties)
- the order of the modules in this file from top to bottom is important for the next step!
4. edit your start.sh script and all connected scripts and config-files (trloii_setup.sh, vulom.trlo..., a dedicated entry for vulom-configuration will follow)
- check if DAQ in running, when triggers are provided
5. set up a new unpacker
-go to the unpacker directory /u/litv-exp/unpacker/unpackexps/ and copy the old unpacker to a new directory:
-> cp -r old_up new_up
-rename the main .spec file:
-> cd new_up
-> mv old_up.spec new_up.spec
-open the Makefile with editor, search and replace "old_up" by "new_up", try compiling:
-> make clean
-> make -j
6. configure the data structure of the unpacker
-make sure you have all the module spec-files that you need included in "new_up.spec", check nurdlib or Hans Törnqvist/Basti Löher in case you do not have it
-edit the "main_user_esr.spec" to include all your modules (see example attached)
-the (geom=0x1) field of each module has to be numbered according to the module order in the main.cfg above, starting from 0x1, some modules require additional things (crate=0)
-edit the "det_mapping.hh" to assign names and types for each channel (example attached)
-recompile and check upacker with running data stream from the daq:
-> make -j
-> ./new_up --stream=r4l-58 --debug (will print only error events) |
Attachment 1: main.cfg
|
CRATE("Master")
{
GSI_VULOM(0x05000000) {
trlo2_master = true
}
MESYTEC_MADC32(0x00500000) {
# nim_busy = gate0
# range = 10 V
# resolution=8
# hires=true
}
BARRIER
CAEN_V775 (0x00A00000) {
common_start = false
time_range = 1200 ns
suppress_invalid = true
suppress_over_range = true
}
BARRIER
CAEN_V830 (0x00E00000) {
resolution = 32
}
BARRIER
MESYTEC_MDPP16SCP (0x00200000) {
auto_pedestals = false
# index 0: ADC resolution -> 0: 16 bit ... 4: 12 bit
# index 1: TDC resolution -> 0: 24 ps ... 5: 781 ps
resolution = (0, 0)
blt_mode = noblt
# true = first single hit.
# false = all hits within window.
only_first_hit = false
# Monitor settings (outputs are NIM2 and NIM3)
# Switch monitor on(1) or off(0)
monitor_on = 1
# Select monitor channel [0..15]
monitor_channel = 0
# Select monitor waveform
# 0: preamp + trigger out
# 1: energy shaped signal + timing filter signal
# 2: energy shaped signal x 32 + reconstructed baseline
# 3: baseline restored signal + timing filter signal
monitor_wave = 0
# NIM input options
# NIM 0: 0 = Off, 1 = Cbus, 4 = Busy out (full), 8 = data thr, 9 = event thr
# NIM 1: always trigger output
# NIM 2: 0 = Off, 1 = Trigger 1 In, 2 = Reset In
# NIM 3: 0,1 = Off, 2 = Sync In (need to set ts_source to external)
# NIM 4: 0 = Off, 1 = Trigger 0 In
nim = (1 {5})
# ECL input options
# ECL 0: 0 = Off, 4 = Busy Out, 8 = data threshold, 9 = event threshold
# ECL 1: 0 = Off, 1 = Reset In
# + 0 = Terminated, + 16 = Unterminated
# ECL 2: 0 = Off, 1 = Sync In, 2 = Trigger 1 In
# + 0 = Terminated, + 16 = Unterminated
# ECL 3: 0 = Off, 1 = Trigger 0 In
# + 0 = Terminated, + 16 = Unterminated
ecl = (0 {4})
# Window ranges:
# time_after_trigger: [-25.56 us .. +25.56 us]
# width: [0 .. 25.56 us]
GATE {
time_after_trigger = -25ns
width = 1us
}
}
}
|
Attachment 2: main_user_esr.spec
|
/////// *********
// created by Christoph Langer
//
// on 05/11/2016
////// *********
SUBEVENT(ESR)
{
esr = LAND_STD_VME();
select several
{
madc[0] = VME_MESY_MADC32(geom=0x1);
madc[1] = VME_MESY_MADC32(geom=0x2);
tdc[0] = VME_CAEN_V775(geom=0x3, crate=0);
tdc[1] = VME_CAEN_V775(geom=0x4, crate=0);
scaler[0] = VME_CAEN_V830(geom=0x5);
scaler[1] = VME_CAEN_V830(geom=0x6);
// mdpp[0] = VME_MESYTEC_MDPP16(geom=0x4);
buffer = NURDLIB_BARRIER_WORD();
}
}
SUBEVENT(TRIDITPAT)
{
tpatword = TRIDI_TPAT_WORD();
}
SUBEVENT(TRIDISCALER)
{
tridiscaler = TRLOII_LMU_SCALERS(id = 0xc7);
}
|
Attachment 3: det_mapping.hh
|
SIGNAL( ADC_1, esr.madc[0].data[0],
ADC_32, esr.madc[0].data[31], DATA32);
SIGNAL( ADC_33, esr.madc[1].data[0],
ADC_64, esr.madc[1].data[31], DATA32);
SIGNAL( TDC_1, esr.tdc[0].data[0],
TDC_32, esr.tdc[0].data[31], DATA12);
SIGNAL( TDC_33, esr.tdc[1].data[0],
TDC_64, esr.tdc[1].data[31], DATA12);
SIGNAL( SC_1, esr.scaler[0].data[0],
SC_32, esr.scaler[0].data[31],DATA32);
SIGNAL( SC_33, esr.scaler[1].data[0],
SC_64, esr.scaler[1].data[31],DATA32);
//SIGNAL(ZERO_SUPPRESS_MULTI(20): MDPP_E1);
//SIGNAL(MDPP_E1, esr.mdpp[0].data[0],
// MDPP_E16, esr.mdpp[0].data[15],DATA16_OVERFLOW);
//SIGNAL(ZERO_SUPPRESS_MULTI(20): MDPP_T1);
//SIGNAL(MDPP_T1, esr.mdpp[0].data[16],
// MDPP_T16, esr.mdpp[0].data[31],DATA16_OVERFLOW);
//SIGNAL(ZERO_SUPPRESS_MULTI(20): MDPP_TRIG_1);
//SIGNAL(MDPP_TRIG_1, esr.mdpp[0].data[32],
// MDPP_TRIG_2, esr.mdpp[0].data[33],DATA16_OVERFLOW);
|
7
|
Mon Nov 11 15:13:35 2019 |
Jan | Electronics | PicoScope via VNC |
The PicoScope is currently connected by USB to the astrum1 laptop (atpnbg004.gsi.de, IP: 140.181.78.126).
The PicoScope Software is installed and can be run on this machine.
A VNC server can be used to allow remote usage of the PicoScope.
Start a VNC server:
> ssh litv-exp@atpnbg004.gsi.de
> vncserver :1
> exit
Access the VNC server by a local VNCviewer (tigerVNC):
> vncviewer atpnbg004.gsi.de:1 |
8
|
Wed Jun 17 16:16:50 2020 |
Jan | Electronics | NDT6800 - CAEN det. emulator |
The control software (win10) ist linked here:
https://sf.gsi.de/f/c031d925ec844a2685a2/?dl=1 |
Attachment 1: UM3074_DigitalDetectorEmulator_rev3.pdf
|
|
Attachment 2: DDE_Firmware_Upgrade_Addendum.pdf
|
|
Attachment 3: DT5800D_MAJOR_FROM_1.8_TO_2_3.NIU
|
Attachment 4: DT5800D_2_5.NIU
|
9
|
Tue Oct 27 16:05:45 2020 |
Jan | DAQ | vulom4ctrl usage |
To use the ctrl binary for the vulom4 you need to find the binary in you trloii directory on the RIO4.
For 2020/21 E127 this is at
/esr/usr/litv-exp/2020_e127/trloii/trloctrl/fw_426cb99c_trlo/bin_ppc-linux_4.2.2/trlo_ctrl
An example for this DAQ is:
trlo_ctrl --addr=5 --mux-src-scalers (this shows the scaler rates for all vulom I/O)
The complete usage:
--addr=HEX Module address (HEX=dummy for dummy).
--clear-setup Set all setup to 0 (muxes to wired 0).
--print-config[=debug] Show configuration.
--trig-status[=n] Print trigger status. (every n s.)
--mux-src-scalers[=NAME,n,ptn,rate,limit=i,reset]
Dump all MUX source scalers, or per requested NAMEs.
Show currently active pattern (ptn, : or *).
Difference or (rate). Every n s (default 1).
Limit to #i displays. Reset scalers.
--config=FILE Load command file (to memory only).
--call=SECTION Execute SECTION from loaded configuration.
--cmd="EXPR" Execute EXPR as an command.
--show[=setup,dest,src] Show available setup parameters, etc.
--tracer[=single] Soft-scope for TRIG LMU inputs.
--sampler=ecl-in-N|ecl-io-in-N|lemo-in-N
Multi-hit timer-latch (stop with Ctrl+C).
--rec-mlatch=A,B,[diff] Multi-hit timer-latch #A,#B,... record to stdout.
--serial-stamp-rate Test serial receiver rate. (Avoid with running DAQ).
--debug[=N] Debugging of tracer and sampler.
--addrtest Run VME test; address readback.
--ramtest Run VME test; RAM block write/read.
--rawread:ADDROFF Read from VULOM at given VME offset.
--rawwrite:ADDROFF=VALUE Write to VULOM at given VME offset. |
10
|
Fri Dec 11 10:44:45 2020 |
Jan | misc | screen config and specialties |
A brief summary of handy features of screen useful, e.g., for daq operation.
1. invoke screen with a prepared config file
This will automatically set up a prepared environmentscreen -S session-name -c config_file an example config_file is attached: ".screen_e127"
it includes key-bindings, several prepared tabs and a bunch of commands for each tab and was used in 2020 for e127 experiment.
2. send external commands into a specific tab of a specific screen sessionscreen -S e127 -p 0 -X stuff "^C"
screen -S e127 -p 0 -X stuff "sleep 2;./start.sh^M"
screen -S e127 -p 4 -X stuff "sleep 10; empty stream://r4l-58 --server=stream:6002^M" With this the remote control of screen by a GUI or so is possible.
This injects ctrl-c:stuff "^C"
And each command has to submitted with the concluding <RETURN>: stuff "top^M"
3. enable passwordless ssh inside a screen
When you invoke screen as a child of ssh-agent and you have encrypted ssh-keys set, you need to type the passphrase only once before opening the screen. Any internal ssh then won't need password. exec /usr/bin/ssh-agent xterm -g 100x20 -e "ssh-add; screen -S session-name -c config_file" & Here you start an xterm that will be killed as soon as the screen terminates. Only inside this xterm your ssh-agent has the keys. ssh-add will only find keys in default location ~/.ssh/ but you could also specify a certain key. |
Attachment 1: .screen_e127
|
# this is a nice caption including tab names
caption always "%{= kw}%-w%{= gW}%n %t%{-}%+w %-= storage rings rule! - %Y-%m-%d %C:%s"
# don't display the copyright page
startup_message off
# autodetach session on hangup instead of terminating screen
autodetach on
# increase scrollback buffer size
defscrollback 10000
# navigating regions with Ctrl-arrows
bindkey "^[[1;5D" focus left
bindkey "^[[1;5C" focus right
bindkey "^[[1;5A" focus up
bindkey "^[[1;5B" focus down
# switch windows with F3 (prev) and F4 (next)
bindkey "^[OR" prev
bindkey "^[OS" next
# create windows
chdir /lynx/Lynx/esr/usr/litv-exp
screen -t DRASI #0
screen -t LOG #1
screen -t RATE #2
screen -t TRLO #3
chdir $E127_DATADIR
screen -t STREAM #4
screen -t FILE #5
chdir /u/litv-exp/e127/UDP/build_cc_x86_64-linux-gnu_4.9.2_debug
screen -t UDP #6
screen -t udp #7
screen -t sync #8
# start logger
select 1
stuff "ssh r4l-58^M"
stuff "cd 2020_e127/r4l-58/^M"
stuff "./logger.sh^M"
# start daq rate monitor
select 2
stuff "ssh r4l-58^M"
stuff "cd 2020_e127/r4l-58/^M"
stuff "./rate.sh^M"
stuff "^M"
# start drasi
select 0
stuff "ssh r4l-58^M"
stuff "cd 2020_e127/r4l-58/^M"
stuff "sleep 1; ./start.sh^M"
# start trlo edit
select 3
stuff "ssh r4l-58^M"
stuff "cd 2020_e127/r4l-58/^M"
# start stream server
select 4
stuff "sleep 10; empty stream://r4l-58:6002 --server=stream:6002^M"
select 5
#stuff "sleep 5; empty trans://r4l-58:6000 --server=trans:6000^M"
# start UDP repeater
select 6
stuff "./udp_repeater^M"
# start UDP reader
select 7
stuff "E127_rates^M"
select 8
stuff "ssh lxg0188^M"
stuff "cd /data.local2/E127_lmd^M"
select 2
#detach
|
11
|
Wed Jan 27 15:57:26 2021 |
Jan | misc | Ausleih-Liste |
item | date out | person | return date | comment
|
HiPace80 + Controller (CRYRING) | 27.01.2021 | M.Lestinsky | |
|
UHV Angle Valve DN100 (CRYRING) | 27.01.2021 | M.Lestinsky | |
|
NexTorr Controller (NucAR lab) | 27.01.2021 | M.Lestinsky | |
|
Agilent Starcell Controller (CRYRING) | 27.01.2021 | UHV/H.Rittelmayer | 03.01.2021 | back at CRYRING location
|
|
12
|
Fri Feb 5 14:58:21 2021 |
Jan | DAQ | UDP rates |
short summary of how to adapt the UDP reader source code.
With the current code only one daq node can be read/printed at a time.
Use different implementations of udp_reader to get access to the LMU_SCALERS from different daq nodes.
Only one generic instance of udp_repeater is needed for this.
In udp_reader.c there are the following important parameters:
- DAQ_node alias for ip-addresses [around line 65]:#define R4L_58 ADDR(10, 99, 2, 39) add new alias for new daq node
- names of channels:c_lmu_label[] this is a list for all 16 ECL_INs (left column) and 16 TPATs (right column)
- layout of terminal output:draw_header() show_lmu() show_lmu_line() |
13
|
Tue Apr 27 14:57:58 2021 |
Jan | SlowControl | ser2net |
ser2net can be used to forward /dev/ttyUSBx or /dev/ttySx to a tcp port.
One can then use telnet for connecting.
The config has to be done in /etc/ser2net.conf
This is an example:
3333:telnet:0:/dev/ttyUSB1:9600 8DATABITS NONE 1STOPBIT
Here ttyUSB1 with the named options is forwarded to telnet port 3333 on the local machine.
You then need to start "/sbin/ser2net"
You can stop it by "sudo service ser2net stop"
This is realized on atpnuc006 now. |
14
|
Mon Jul 26 12:53:29 2021 |
Jan | DAQ | How to flash a vulom |
The vulom can be flashed via VME-bus from the RIO by using the binaries located here:
/nfs/groups/daq/usr/kurz/gsi_vme/flash/vulom/
There are subdirectories for several platforms, like
RIO4_Linux_2.6.33 (this is for our linux-RIOs)
RIO4_Linux_2.6
RIO4_Lynx
RIO3_...
IPV_...
IFC will follow soon...
The binaries needed for flashing are the following:
eraseflash <add> <slot>
progflash <add> <slot> <bitfile>
veriflash <add> <slot> <bitfile>
restart <add> <slot>
When invoked in the above order, things should work.
For 2.6.33 there are ALIASes:
vulom_erase
vulom_flash
vulom_verify
vulom_reset
The bitfiles for vulom4b are located here:
/nfs/groups/daq/usr/kurz/gsi_vme/flash/vulom/bitfiles/ |
15
|
Thu Jan 26 16:34:43 2023 |
Jan | Detectors | DSSD W1 3305-09 - UI diagram |
Attached is the UI diagram of the new double-sided silicon strip detector (DSSD). [Micron W1, ID: 3305-9]
It was taken during the internship of Emily Voigt and Rebanna Klawitter.
Conditons:
- DSSD in dark test chamber
- under atmosphere pressure
- no alpha source or similar
Analysis:
The current is roughly linear with voltage up to values of about 110-120V. After this point the current increases more slowly, kind of a plateau.
The comparison to an older measurement [https://elog.gsi.de/esr/E127/292] with another, identical DSSD is not fully understood. No plateau seems to reached in the range up to 150V. The currents are also significanlty higher.
Conclusion:
Save operation is possible up to 100V.
Voltages above 100V should only be used in case of ion damage and related performance losses. |
Attachment 1: Si_U_I_curve.txt
|
10;63.5;64.0
20;74.5;75.0
30;81.0;82.0
40;85.0;88.0
50;93.5;94.0
60;103.0;103.5
70;111.5;112.0
80;120.0;120.5
90;128.0;128.0
100;135.5;135.5
110;141.5;141.5
120;146.0;146.0
130;149.0;148.5
140;151.0;151.0
150;153.5;153.5
|
Attachment 2: Praktikum_U_I.pdf
|
|
Attachment 3: praktikum.py
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 26 14:36:33 2023
@author: macbook
"""
import matplotlib.pyplot as plt
plt.style.use('bmh')
plt.rcParams["figure.figsize"] = (10, 5)
Datei = open('Si_U_I_curve.txt')
inhalt = Datei.read()
zeilen = inhalt.split('\n')
tabelle = []
for zeile in range(len(zeilen)):
spalten = zeilen[zeile].split(';')
tabelle.append(spalten)
tabelle[zeile][0:] = [float(zahl) for zahl in tabelle [zeile][0:]]
y1 = [zeile[1]/1000 for zeile in tabelle]
y2 = [zeile[2]/1000 for zeile in tabelle]
y_alt = [0.11, 0.13, 0.15, 0.17, 0.19, 0.21, 0.22, 0.23, 0.25, 0.27, 0.29, 0.31, 0.33, 0.35, 0.37]
x = [zeile[0] for zeile in tabelle]
plt.plot(x,y1, label='26.01.2023, 3305-9')
plt.plot(x,y2, label = "26.01.2023, 3305-9" )
plt.plot(x,y_alt, label = "28.04.2021, 3305-11")
plt.xlabel("U [V]")
plt.ylabel("I [$\mu$ A]")
plt.legend(loc= "upper left")
plt.savefig('Praktikum_U_I.pdf', dpi=500)
|
Attachment 4: W1_3305-9_U_I_diagram.txt
|
U[V] I[nA] I[nA]
10 63.5 64.0
20 74.5 75.0
30 81.0 82.0
40 85.0 88.0
50 93.5 94.0
60 103.0 103.5
70 111.5 112.0
80 120.0 120.5
90 128.0 128.0
100 135.5 135.5
110 141.5 141.5
120 146.0 146.0
130 149.0 148.5
140 151.0 151.0
150 153.5 153.5
|
Attachment 5: UI_diagram_W1_3305-9_2022.png
|
|
16
|
Fri Jan 27 09:24:35 2023 |
Jan Glorius, Rebanna Klawitter, Emily Voigt | Detectors | DSSD-Alpha-Quellen-Messung |
Detektor: Micron DSSD W1 ID: 3305-9
Start: 26.01.2023, 15.20
Stopp: 27.01.2023, 09.16
triple Alpha-Quelle
U_si = -100V
Daten: Lxg1275:/data.local2/2023_dssd_test/messung001.lmd |
17
|
Fri Jan 27 10:18:16 2023 |
Jan Glorius, Rebanna Klawitter, Emily Voigt | Detectors | DSSD-Performance-Test |
Detector: W1 3305-09
Setup:
- on vacuum (p=5e-5mbar)
- dark chamber
- triple alpha source
Daten: Lxg1275:/data.local2/2023_dssd_test/messung001.lmd
The resolution (sigma) is consistently below 0.5% for all strips.
dE/E = sigma/mean (root analysis)
strip dE/E
y1 0.0040
y2 0.0043
y3 0.0037
y4 0.0034
y5 0.0037
y6 0.0035
y7 0.0044
y8 0.0034
y9 0.0037
y10 0.0035
y11 0.0037
y12 0.0033
y13 0.0038
y14 0.0036
y15 0.0046
y16 0.0035
x1 0.0050
x2 0.0041
x3 0.0042
x4 0.0045
x5 0.0042
x6 0.0036
x7 0.0041
x8 0.0041
x9 0.0039
x10 0.0040
x11 0.0038
x12 0.0035
x13 0.0043
x14 0.0038
x15 0.0044
x16 0.0036 |
Attachment 1: alphaE1.pdf
|
|
Attachment 2: alphaE2.pdf
|
|
Attachment 3: alphaE_x_vs_Y.pdf
|
|
Attachment 4: alphaE_x_vs_Y_lin.pdf
|
|
Attachment 5: alphaE_x_vs_Y_log.pdf
|
|
Attachment 6: alphaE_x_vs_Y_log_full.pdf
|
|
18
|
Fri Jan 27 13:40:36 2023 |
Jan | Detectors | DSSD W1 3305-11 - UI diagram |
Attached is the UI diagram of the new double-sided silicon strip detector (DSSD). [Micron W1, ID: 3305-11]
Conditons:
- DSSD in dark test chamber
- under atmosphere pressure
- no alpha source or similar
Analysis:
The current plateau extends up to about 80V. Beyond this point the current increases more rapidly with voltage.
Conclusion:
Operation between 70-80V is optimal.
Depletion voltage is 40V according to Micron. |
Attachment 1: W1_3305-11_U_I_diagram.txt
|
U[V] I[nA] I[nA]
5 58 58
10 66 66
20 75 76
30 82 82
40 89 91
50 101 103
60 113 113
70 128 125
80 162 140
90 243 207
100 382 335
110 555 502
120 750 683
130 955 885
|
Attachment 2: UI_diagram_W1_3305-11_2022.png
|
|
19
|
Tue Apr 18 10:52:37 2023 |
Jan | Electronics | Manual Collection - VME Modules |
|
Attachment 1: CAEN_V775.pdf
|
|
Attachment 2: CAEN_V785.pdf
|
|
Attachment 3: CAEN_V820V830.pdf
|
|
Attachment 4: MesyTec_MVLC.pdf
|
|
Attachment 5: MesyTec_MDPP-16_QDC.pdf
|
|
Attachment 6: MesyTec_MDPP-16_SCP-RCP.pdf
|
|
Attachment 7: MesyTec_MTDC-32.pdf
|
|
Attachment 8: MesyTec_MADC-32.pdf
|
|
20
|
Tue Apr 18 10:58:26 2023 |
Jan | Electronics | Manual Collection - NIM & others |
|
Attachment 1: MesyTec_MSCF16-F-V.pdf
|
|
Attachment 2: MesyTec_MHV-4.pdf
|
|
Attachment 3: MesyTec_MPR-1.pdf
|
|
Attachment 4: MesyTec_MPR-16-L.pdf
|
|
Attachment 5: MesyTec_MSI-8.pdf
|
|
Attachment 6: MesyTec_MHL-32.pdf
|
|
Attachment 7: CAEN_R1419_rev19.pdf
|
|
Attachment 8: CAEN_NDT6800_rev3-1.pdf
|
|
Attachment 9: PicoScope3000DSeriesUsersGuideEN.pdf
|
|
Attachment 10: PICOSCOPE_4000.en-7.pdf
|
|
21
|
Tue Jul 18 15:55:29 2023 |
Jan | DAQ | MBS with IFC or RIO4 |
Nik Kurz has setup an mbs-system for me to run with the new IFC, but it is also compatible to the RIO4 (and other VME CPUs).
The special thing about this setup is, that the VULOM priority encoder is exchanged the the VULOM trloii. Special care about the trloii-config needs to be taken.
To change the VME CPU one has to change 2 files and recompile.
1) setup.usf -> there are setup.usf.ifc and setup.usf.rioXX... the file used (setup.usf) needs to be overwritten by the one with the right extension
2) startup.scom -> same here, the used file (startup.scom) needs to be overwritten by the file with the right extension (startup.scom.ifc)
3) make clean; make
List of supported modules (18.07.2023):
MesyTec VMMR (untested)
MesyTec MDPP16 (tested)
MesyTec MADC32 (tested)
MesyTec MTDC32 (tested)
CAEN V775 TDC (tested)
CAEN V785 ADC (tested)
CAEN V830 Scaler (tested)
VULOM trloii (tested)
VULOM SCA32 (tested) |
22
|
Fri Apr 19 16:05:03 2024 |
Jan | DAQ | MBS - module addressing |
This entry refers to the MBS template from Nik Kurz found at /esr/usr/litv-exp/MBS/templates/2024_MBS_R2_R4_IFC_v1 or similar.
To find the right VME address for your modules, you need the (1) base address, (2) module space and (3) module offset. You simply add those three hex numbers to get the individual module address.
Example:
V830[2] is the third V830 in this DAQ and has index 2.
It has
(1)=0x7000000
(2)=0x400000
(3)=0x20000.
Added up this yields
0x07440000
So you have to set 0x0744 on the module.
Details:
(1) the base is ususally 0x0700.0000. You only need the 4 hi bits, i.e. 0x0700. It can be readout in setup.usf, there is a line like this:
-------
LOC_MEM_BASE = (0xe7000000, 0x0, 0x0, 0x0,-
-------
(2) the module space is the start address of the range foreseen for this kind of module in the template. It is defined in the f_used.c:
-------
#define ADDR_OFF_VMMR 0x10000
#define ADDR_OFF_MDPP 0x100000
#define ADDR_OFF_V775 0x200000
#define ADDR_OFF_V785 0x300000
#define ADDR_OFF_V830 0x400000
#define ADDR_OFF_MADC 0x500000
#define ADDR_OFF_MTDC 0x600000
#define ADDR_OFF_VUL_SCAL 0x1000000
-------
(3) the module offset is an incremental offset from the start address given to modules of higher index than 0. The second module of a type has index 1 and will get the offset once, while the first module
does not get an offset. The offset along with the number of modules of a kind is defined in the f_user.c:
-------
#define N_VMMR 0
#define VMMR_OFF 0x20000
#define N_MDPP 0
#define MDPP_OFF 0x20000
#define N_V775 0
#define N_V775_CHA 32
#define V775_OFF 0x20000
#define N_V785 0
#define N_V785_CHA 32
#define V785_OFF 0x20000
#define N_V830 1
#define N_V830_CHA 32
#define V830_OFF 0x20000
#define N_MADC 0
#define N_MADC_CHA 32
#define MADC_OFF 0x20000
#define N_MTDC 0
#define N_MTDC_CHA 32
#define MTDC_OFF 0x20000
#define N_VUL_SCAL 0
#define N_VUL_SCAL_CHA 32
#define VUL_SCAL_OFF 0x1000000
------- |
23
|
Mon Sep 9 09:53:42 2024 |
Jan | DAQ | MBS cheat sheet |
General
- to start MBS, always navigate to the folder containing the f_user.c setup for your hardware
- it is recommended to start MBS in a sceen session (see at the bottom)
- use MBS scripts to do initialitation "startup.scom", shutdown "shutdown.scom" or file writing "runstart.scom"/"runstop.scom" and other things
these scripts are simple lists of MBS shell commands, one per row
they should be in your MBS folder and can be created or adjusted as needed
TCSH/BASH terminal of your MBS node:
command | comment
| > mbs | starts the mbs shell
| > resl | stops all running mbs services (use to kill DAQ from a different terminal)
| > rate | status monitor for MBS data I/O on this node
| > ratf | same as "rate" but with full file /dir/name
| [CTRL] + [Z] | exit MBS shell
|
In the MBS shell
command parts in parenthesis () are optional/autocompleted
optional arguments are given in {}
Initialization & status
command | comment
| mbs> @startup | call the startup script, if existing, it should setup everything
| mbs> sh(ow) ac(quisition) | show the status of the aquisition (RUNNING, OUTPUT DEVICE, FILE OPEN, etc)
| mbs> sh(ow) f(ile) | show the file status
| mbs> t(ype) e(vent) {X} {-v} | display header of next X events, -v option also displays the data part
| [CTRL] + [Z] | exit MBS shell
|
File handling
While it is possible to directly write into the /home/ mounted by your MBS user, it is highly recommended to use an RFIO server to write to an external disk. Direct local file writing will go to the one disk any of the MBS users work on with their DAQs. This might lead to perfomance problems for others and in the worst case (the disk is full), no one can use MBS.
command | comment
| mbs> co(nnect) rfio linuxpc.gsi.de -DISK | connect to a running RFIO server on the pc linuxpc.gsi.de (see below)
| mbs> disc(onnect) rfio | disconnect the RFIO server
| mbs> op(en) f(ile) /path/to/storage/place/file.lmd -disk | open a file on the local disk (not recommended)
| mbs> op(en) f(ile) /path/to/storage/place/file.lmd -rfio | open a file and send to RFIO server (recommended)
| mbs> op(en) f(ile) file.lmd -rfio {-auto} | -auto does automatic filename numbering, next number given in filenum.set, new file after 1GB file size
| mbs> op(en) f(ile) file.lmd -rfio {-auto} {first=Y} | first=Y sets the first file number for -auto and resets number in filenum.set
| mbs> op(en) f(ile) file.lmd -rfio {-auto} {size=X} | size=X sets the maximum file size in MB for -auto to open a new file automatically
| mbs> cl(ose) f(ile) | close the current file (regardless of how it was opened)
| mbs> |
| mbs> |
| mbs> |
| mbs> |
| mbs> |
| mbs> |
| [CTRL] + [Z] | exit MBS shell
|
RFIO server
Online monitoring (Go4 & stream server)
screen: usage of a virtual terminal |
24
|
Wed Oct 2 15:01:41 2024 |
Jan | DAQ | SIS3820 in MBS |
Michael Reese and Nik Kurz implemented the SIS3820 scaler module in MBS to be used with RIO4, IFC and MVLC.
Attached is zipped folder for usage with RIO4/IFC (f_user.c, etc.).
Below is the email by Michael with some explanation and the config needed to implement the module in MVME for use with the MVLC.
######################################################
############ EMAIL by M.Reese 02.10.2024 #############
######################################################
Hallo Jan,
Das SIS3820 Scaler Modul muss auf Adresse 0x08000000 eingedreht werden.
Das NIM-Signal, das die Scaler "latchen" soll, muss für alle Konfigurationen (RIO4/IFC/MVLC) in "input 1" rein. In dem 8er-LEMO-Block ist das der input unten links.
RIO/IFC
Die modifizierte f_user.c fuer SIS3820 readout mit RIO4 / IFC ist hier:
/daq/usr/mreese/mbsrun/rio4l_mesytec_MADC32_test/f_user.c
MVLC
Für MVLC habe ich zwei Readout-Varianten implementiert, du musst mal schauen welche besser für eure Anwendung passt.
1) Readout über die "Shadow Register". Die latchen die Counter wenn auf "input 1" ein Signal kommt. Diesen Readout kann man entweder mit Blocktransfer oder mit Single Cycle machen. Im Single Cycle kannst du beliebige Subsets an Register wählen. Im Blocktransfer nur zusammenhängende Register. Hier liegen die Daten ab Adresse 0x800.
2) Readout über FIFO. Es gibt hier eine Bitmaske "copy disable register", über die man bestimmen kann welche Counter nicht in die FIFO geschrieben werden. Da es "copy disable" heißt, bedeutet '0' dass der Counter in die Daten kopiert wird. Die Daten werden aus Adresse 0x800000 gelesen, also andere Adresse als die Shadow Register. Hier muss man aufpassen, dass man beim Blocktransfer immer genau die korrekte Anzahl an Werten liest, die in der "copy disable" Maske eingestellt sind. Ansonsten wird der Readout (aus unbekannten Gründen) sehr langsam. Im Prinzip ist das der schnellste Modus, insbesondere wenn du ein nicht zusammenhängendes Subset von Kanälen im Blocktransfer lesen willst. Aber es ist leider etwas komplizierter.
Wenn du die beiden Textabschnitte unten kopierst wie sie sind, dann bekommst du Variante 2) "MULTI CHANNEL SCALER".
Um umzuschalten "LATCHING SCALER" musst du unter der Zeile "# configure the operation mode register" die Zeile mit "mode of operation 0" nehmen, und im Readout Loop eine der beiden unteren Varianten nehmen (die auf Adresse 0x800 lesen).
Viele Grüsse,
Michael
----------------
MVME workspace:
event_3_hardware_trigger_type_1 -> Rechtsklick -> Add Module ->
Type: UserModule_10 , Name: SIS3820 , Address : 0x08000000
---------------
Module Init:
# =====================================================================
# Reset the module
# =====================================================================
write a32 d32 0x400 0x1 # KEY_RESET
write a32 d32 0x404 0x1 # KEY_SDRAM_FIFO_RESET
write a32 d32 0x000 0xffff0000 # clear all bits in Control/Status Register
# =====================================================================
# Setup for "LATCHING SCALER" mode
# - disadvantage: this has no channel mask, i.e. only a conscutive cahnnels
# can be read out in block mode (blt)
# if an arbitraty subset of channels is needed one has to
# do single cycle readout
#
# or
#
# Setup for "MULTI CHANNEL SCALER" mode
# - advantage: this mode allows to select a subset of channels using a mask register (0x104)
# - disadvantage: this requires the high address space 0x800000
#
# In both modes, the input 1 on the front panel latches the scaler values
# In both modes, the input 3 in the front panel inhibits the counters (i.e. negative gate for the scalers operation)
#
# Module front panel LEMO outputs / inputs for this configuration
# =====================================================================
# output 7 (10M) (L/M) output 8 L/M = copy of LNE input in Scaler Mode; Copy-to-SDRAM-in-progress in Multi channel Scaler mode
# output 5 ( * ) (10M) output 6 10M = 10 MHz output clock (20 ns pulse)
# input 3 (InC) ( * ) input 4 InC = inhibit counting (counters stop countig if this is enabled (NIM-enabled = -0.7 V)
# input 1 (LNE) ( * ) input 2 LNE = load next event (copies all 32 counters into shadow registers)
# =====================================================================
# configure the operation mode register:
#write a32 d32 0x100 0x00220011 # [30:28] mode of operation 0 : "LATCHING SCALER" mode : counter data is copied to shadow registers on LNE (load next event)
write a32 d32 0x100 0x20220011 # [30:28] mode of operation 2 : "MULTI CHANNEL SCALER" mode : counter data is copied to SDRAM in FIFO emulation mode
# [21:20] output mode 2 : ouptut 5 -> LNE pulse , outputs 6+7 -> 10 MHz pulses
# [18:16] input mode 2 : input 1 -> external next pulse, input 3 -> inhibit counting
# [13:12] select SDRAM mode 1 : SDRAM (instead of FIFO) allows to read data from address 0x800000
# [ 6: 4] LNE (load next event) is taken from input 1 on front panel
# [ 0] celect non clearing mode 0: counters are NOT cleared at LNE
# =====================================================================
# Select the channels (only relevant for "MULTI CHANNEL SCALER" mode)
# USER MUST MAKE SURE THAT NUMBER OF ENABLED CHANNELS MATCHES
# THE NUMBER OF WORDS READ IN BLT READOUT AT ADDRESS 0x800000
# =====================================================================
write a32 d32 0x104 0x00000000 # disable no channels (i.e. copy all 32 channels to SDRAM). Readout should be "blt a32 0x800000 32"
#write a32 d32 0x104 0x0fffffff # disable 28 lower channels (i.e. copy 4 channels [31,30,29,28] to SDRAM). Readout should be "blt a32 0x800000 4"
#write a32 d32 0x104 0xffffffbb # disable all but channels 2 to 6. Readout should be "blt a32 0x800000 2"
# =====================================================================
# Enable the module.
# Writing any value into this register starts the scaler operation.
# =====================================================================
write a32 d32 0x418 0x1 # KEY_OPERATION_ENABLE register: any write access starts scaler operation
----------------
Readout Loop:
# ==================================================================
# Readout for "MULTI CHANNEL SCALER" mode
#
# MAKE SURE THAT THE NUMBER OF 32-BIT-WORDS MUST MATCH
# THE SUM OF NON DISABLED BITS IN THE COPY DISABLE REGISTER (0x104)
# IN MODULE INIT
# ==================================================================
blt a32 0x800000 32
# ==================================================================
# Block Transfer Readout for "LATCHING SCALER" mode
# Read shadow registers (latched counters) with block transfer
# The latching happens on LNE signal (front panel input 1)
# ==================================================================
#blt a32 0x800 32
# ==================================================================
# Single Cycle Readout for "LATCHING SCALER" mode
# Read shadow registers with single cycle
# ==================================================================
#read a32 d32 0x800
#read a32 d32 0x804
#read a32 d32 0x808
#read a32 d32 0x80c
#read a32 d32 0x810
#read a32 d32 0x814
#read a32 d32 0x818
#read a32 d32 0x81c
#read a32 d32 0x820
#read a32 d32 0x824
#read a32 d32 0x828
#read a32 d32 0x82c
#read a32 d32 0x830
#read a32 d32 0x834
#read a32 d32 0x838
#read a32 d32 0x83c
#read a32 d32 0x840
#read a32 d32 0x844
#read a32 d32 0x848
#read a32 d32 0x84c
#read a32 d32 0x850
#read a32 d32 0x854
#read a32 d32 0x858
#read a32 d32 0x85c
#read a32 d32 0x860
#read a32 d32 0x864
#read a32 d32 0x868
#read a32 d32 0x86c
#read a32 d32 0x870
#read a32 d32 0x874
#read a32 d32 0x878
#read a32 d32 0x87c
####################################
############ EMAIL END #############
#################################### |
Attachment 1: sis3820.tar.gz
|