Changes for page Trigger Howto

Last modified by sndueste on 2023/07/07 11:28

From version 5.1
edited by sndueste
on 2019/08/22 16:02
Change comment: There is no comment for this version
To version 12.1
edited by sndueste
on 2019/09/17 15:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,24 +2,23 @@
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 detailed description can be found in [[x2Timer manual>>attach:x2Timer.pdf]].
2 2  
3 -in short: the triggers are for low impedance (~~50 OHM terminated ?? ), 5V triggers with an adjustable width. The main control panel 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 panel) ports at the rack.
4 4  
5 -The main control can be done with a simplified user panel which can handle 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="800"~]~]>>attach:Trigger_scheme.gif]]
3 +{{toc/}}
6 6  
5 += Introduction (user panel)
6 + =
7 7  
8 -\\
8 +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 detailed description can be found in [[x2Timer manual>>attach:x2Timer.pdf]].
9 9  
10 -there is a more advanced control panel (by MCS4) to change more subtle parameters:
10 +in short: the triggers are for low impedance (~~50 OHM terminated ?? ), 5V triggers with an adjustable width. The main control panel 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 panel) ports at the rack.
11 11  
12 -\\
12 +The main control can be done with a simplified user panel which can handle 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="800"~]~]>>attach:Trigger_scheme.gif]]
13 13  
14 14  
15 15  \\
16 16  
17 += Different trigger events (starting points) =
17 17  
18 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger3k.png~|~|alt="mtcatrigger3k.png" width="608" height="461"~]~]>>attach:mtcatrigger3k.png]]
19 +one can configure each channel for an individual trigger event
19 19  
20 -one can configure each channel for a trigger event
21 -
22 22  **FLASH1**
23 23  
24 24  (% class="wrapped" %)
... ... @@ -78,22 +78,161 @@
78 78  |(((
79 79  181
80 80  )))|(((
81 -shifts with thestart time of FLASH2 as event 22 but comes 22 ms ! before the FEL
80 +shifts with the start time of FLASH2 as event 22 but comes 22 ms ! before the FEL
82 82  )))
83 83  
84 84  from this trigger as starting point one can shift the timing in 9 ns steps first and finally in 0.9 ns steps for fine adjustment.
85 85  
85 +\\
86 86  
87 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger1.png~|~|alt="mtcatrigger1.png" width="811" height="532"~]~]>>attach:mtcatrigger1.png]]
87 += Expert panels =
88 88  
89 89  \\
90 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 choice . 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 expert panel (see below) has to be used. The Trigger in the user panel (see above) has to be set to 0 !!!**
93 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger2k.png~|~|alt="mtcatrigger2k.png" width="607" height="458"~]~]>>attach:mtcatrigger2k.png]]
91 +[[image:attach:image2019-9-17_13-10-56.png||height="250"]] [[image:attach:image2019-9-17_13-8-46.png||height="400"]]
94 94  
95 -here an example defining the bunch pattern for FLASH1 to mask 1
93 +With the **"Expert overview"** one gets the overview over all channels available on the timing card and can configure the card. This is useful to look what channels are using clock settings or burst mode settings that one wants to change ... and using the other tabs one can set parameters for clocks and bursts (see below)
96 96  
97 97  \\
98 98  
99 -[[here is a link to the old VME trigger system>>doc:FLASH.VMETrigger]]
97 +For each trigger channel there is in addition an **"Expert panel"** to set the properties of THIS channel
98 +
99 +[[image:attach:image2019-9-17_13-14-52.png||height="250"]] [[image:attach:image2019-9-17_13-15-38.png||width="550"]]
100 +
101 +\\
102 +
103 +\\
104 +
105 +\\
106 +
107 += Set a constant frequency to a channel =
108 +
109 +=
110 +[[image:attach:image2019-9-17_13-18-9.png||height="250"]][[image:attach:image2019-9-17_13-18-37.png||height="149"]] =
111 +
112 +\\
113 +
114 +The timer card provides the option to generate  frequencies that are synched to the FEL reprate on the ps level. One can set 3 Clocks by deviding the reference frequency of 54.2 MHz by n.** Please check (using the Expert overview ) before changing a frequency of it is used for some other channel !!**
115 +
116 +Since our main FEL frequency is 100.31 MHz the dividers are not straight forward:
117 +
118 +[[image:attach:image2019-9-17_14-22-29.png||width="450" align="right"]]
119 +
120 +\\
121 +
122 +(% class="wrapped" %)
123 +|=(((
124 +Clock frequency
125 +)))|=(((
126 +Divider to be set
127 +)))
128 +|(((
129 +"1 MHz" (1000.31 kHz)
130 +)))|(((
131 +53
132 +)))
133 +|(((
134 +"500 kHz" (501.5 kHz)
135 +)))|(((
136 +107
137 +)))
138 +|(((
139 +"250 kHz" (250.8 kHz)
140 +)))|(((
141 +215
142 +)))
143 +|(% colspan="1" %)(((
144 +"200 kHz" (200.6 kHz)
145 +)))|(% colspan="1" %)(((
146 +269
147 +)))
148 +|(% colspan="1" %)(((
149 +"100 kHz" (100.3 kHz)
150 +)))|(% colspan="1" %)(((
151 +539
152 +)))
153 +
154 +\\
155 +
156 +\\
157 +
158 +\\
159 +
160 +\\
161 +
162 +Once a clock is configured with the right frequency one can choose in the "expert panel" of the according channel the "FPGA clock" in the "input source select"  chooser.
163 +
164 +\\
165 +
166 +\\
167 +
168 +\\
169 +
170 +One has to set the delay to values less than the repetition rate ... (so for 1 MHz between 0 and 990 µs)  and the trigger width also less than the rep rate ...
171 +
172 +\\
173 +
174 +\\
175 +
176 +\\
177 +
178 +This results in a continuous train of pulses with the set trigger width :
179 +
180 += Creating an (own) burst trigger =
181 +
182 +One can use now a SECOND trigger channel which is set to a regular 10 Hz trigger  and gate the clock output to create a burst with defined start point and length,
183 +
184 +For the example we use the FRONT.TRG2 (BL3 Trg5) as gate pulse which defines the length of the burst (set with the trigger width) and the (rough) starting point of the burst. This trigger is only used as gate and the physical trigger output is NOT used.
185 +
186 +The  second channel (here FRONT.TRG3 (BL3 Trg6) which is set to the clock frequency defines the reprate (by the FPGA clock setting) , the exact starting point of the first trigger ( by the delay ) and the width of the  MHz/kHz triggers (width).
187 +
188 +**To get from the clock to the burst trigger** one has to:
189 +
190 +* set the  "2nd source select" to the gate trigger ( here FRONT.TRG2) - this defines a second source to considder for the trigger output.
191 +* and the "output source select" to "AND 2nd Ch."  this finally only sends a trigger if on both inputs (clock and gate) we have a high signal.
192 +
193 +\\
194 +
195 +[[image:attach:image2019-9-17_14-35-5.png||height="250"]] [[image:attach:image2019-9-17_14-34-38.png||width="400"]]
196 +
197 +\\
198 +
199 +\\
200 +
201 += Real bunch trigger  - get a trigger for each FEL pulse =
202 +
203 +\\
204 +
205 +Sometimes it is convenient to get a trigger pulse for each pulse in the FEL. thus if the FEL number of bunches or reprate are changed, the trigger adapts accordingly.
206 +
207 +For this one has to select the source of interest in the expert overview panel (tab: "Bunch pattern") ... well for us this is FLASH1 (FL1D) or FLASH2 (FL2D)
208 +
209 +There are 6 different bunch pattern "channels" one can configure. Typically only 2 are needed ... And in each one there are 6 selectors to choose sources . We only need one - it does not matter in which one is used.
210 +
211 +[[~[~[image:attach:image2019-9-17_14-51-28.png~|~|height="250"~]~]>>attach:image2019-9-17_14-51-28.png]][[image:attach:image2019-9-17_14-47-15.png||thumbnail="true" height="199"]]
212 +
213 +\\
214 +
215 +In the expert panel one can now choose the configured "Bunch Pattern" as "Input source select"
216 +
217 +**NOTE: To shift the burst in time one can no longer use the delay of the individual channel BUT the delay in the "Bunch pattern" tab in the expert overview! This now shifts all bursts ... so you better know what you are doing. typically the burst is already shifted to the actual FEL timing ... Shifting the timing should be discussed with the beamline scientist / local contact ...**
218 +
219 +\\
220 +
221 +[[image:attach:image2019-9-17_14-52-27.png||height="248"]][[image:attach:image2019-9-17_14-52-40.png||height="250"]]
222 +
223 +\\
224 +
225 +\\
226 +
227 +\\
228 +
229 +\\
230 +
231 +\\
232 +
233 +\\
234 +
235 +\\
236 +
237 +\\