Wiki source code of Trigger Howto

Version 3.1 by sendels on 2019/08/12 15:53

Hide last authors
sendels 3.1 1 The MTCA based triggers have a jitter in the few ps range, the delay can be shifted in 1 ns steps (over many ms), one can choose between 10 Hz triggers, frequencies locked to the pulses (e.g. 1MHz) and the actual bunch patterns. A detailled description can be found in [[x2Timer manual>>attach:FLASH.TriggerHowTo@x2Timer.pdf]]. And here is the [[little talk>>attach:FLASH.TriggerHowTo@mtca_trigger.pdf]] that was given in the group meeting Oct 2014
sendels 1.1 2
3 in short: the triggers are for low impedance (~~50 OHM terminated ?? ), 5V triggers with an adjustable width. The main controlpannel for the x2 timer has the control options for the 3 front modules (connected with a RJ45 cable - connecting to a "trigger box" with 2 trigger exits (Lemo) each) and 8 Lemo exits at the back of the crate. in the BL-beamline case these triggers are connected to the BNC (patch pannel) ports at the rack.
4
sendels 3.1 5 The main control can be done with a simplified user panel which can handel the timing in respect to the FEL pulses and not in respect to some (arbitrary) reference time ( Event)[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/Trigger_scheme.gif~|~|alt="Trigger_scheme.gif" width="1255" height="937"~]~]>>attach:Trigger_scheme.gif]]
sendels 1.1 6
7
8 \\
9
10 there is a more advanced control pannel (by MCS4) to change more subtile parameters:
11
12 \\
13
14
15 \\
16
17
sendels 3.1 18 [[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger3k.png~|~|alt="mtcatrigger3k.png" width="608" height="461"~]~]>>attach:mtcatrigger3k.png]]
sendels 1.1 19
20 one can configure each channel for a trigger event
21
22 **FLASH1**
23
sendels 2.1 24 (% class="wrapped" %)
sendels 1.1 25 |(((
26 trigger No
27 )))|(((
28 function
29 )))
30 |(((
31 16
32 )))|(((
33 the MCA trigger 3.11 ms before the Flash1 pulses (same as A6 but more stable)
34 )))
35 |(((
36 166
37 )))|(((
38 A6 event. still possible to use but less precise than 16
39 )))
40 |(((
41 162
42 )))|(((
43 A2 event as earliest ( 24 ms before the FEL)
44 )))
45 |(((
46 224
47 )))|(((
48 E0 event of the BL fast shutter ( 19 ms before the FEL)
49 )))
50 |(((
51 225
52 )))|(((
53 E1 event of the PG fast shutter ( 19 ms before the FEL)
54 )))
55 |(((
56 21
57 )))|(((
58 Trig16 + first bunch of FLASH1 - this trigger is shifted when FL1 starts later than "700"
59 )))
60
61 \\
62
63 \\
64
65 **FLASH2**
66
sendels 2.1 67 (% class="wrapped" %)
sendels 1.1 68 |(((
69 trigger No
70 )))|(((
71 function
72 )))
73 |(((
74 22
75 )))|(((
76 Trig116 + first bunch of FLASH2 - this trigger is shifted when FL2 starts at a different start time
77 )))
78 |(((
79 181
80 )))|(((
81 shifts with thestart time of FLASH2 as event 22 but comes 22 ms ! before the FEL
82 )))
83
84 from this trigger as starting point one can shift the timing in 9 ns steps forst and finally in 0.9 ns steps for fine adjustment.
85
86
sendels 3.1 87 [[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger1.png~|~|alt="mtcatrigger1.png" width="811" height="532"~]~]>>attach:mtcatrigger1.png]]
sendels 1.1 88
89 \\
90
91 * in order to generate a stable frequency one has to set the input source to FPGA clock (and use dividers to get the desired frequency)
92 * to generate the burst patterns of the FEL one has to choose a trigger event (best 116 for FLASH 2 and 16 for FLASH1) and activate Destination 1 for FLASH1 and Destination 2 for FLASH2 . finally one has to assign the activated Bunch pattern mask to the trigger channel of choise . now the pattern can be shifted and the trigger width can be changed as with the 10 Hz triggers. **IMPORTANT: to move the bunchtrain to the desired starting point the DELAY in the expertpennal (see below) has to be used. The Trigger in the user panel (see above) has to be set to 0 !!!**
sendels 3.1 93 [[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger2k.png~|~|alt="mtcatrigger2k.png" width="607" height="458"~]~]>>attach:mtcatrigger2k.png]]
sendels 1.1 94
95 here an example definging the bunch pattern for FLASH1 to mask 1
96
97 \\
98
sendels 3.1 99 [[here is a link to the old VME trigger system>>doc:FLASH.VMETrigger]]