Last modified by sndueste on 2024/03/13 14:48

From version 3.1
edited by sendels
on 2019/08/07 08:40
Change comment: added attachments and links
To version 1.1
edited by sendels
on 2019/05/09 14:18
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -How to read Train IDs at FLASH
1 +TrainID
Content
... ... @@ -1,17 +1,21 @@
1 -==
2 -(% class="twikiTocTitle" %)Contents(%%) ==
1 +== How to read Train IDs at FLASH ==
3 3  
4 -* [[Introduction>>doc:||anchor="Introduction"]]
5 -* [[Train ID reading with local ID reader (Advanced ID Server) recommended>>doc:||anchor="Train ID reading with local ID reader (Advanced ID Server) recommended"]]
6 -** [[What does Advanced ID Server do?>>doc:||anchor="What does Advanced ID Server do?"]]
7 -** [[Addresses>>doc:||anchor="Addresses"]]
8 -** [[Resources>>doc:||anchor="Resources"]]:
9 -* [[Direct reading of Train ID>>doc:||anchor="Direct reading of Train ID"]]
10 -* [[Train ID sender program (TIDS) obsolete>>doc:||anchor="Train ID sender program (TIDS) obsolete"]]
11 -* [[Train ID Yelling server (TIDY)>>doc:||anchor="Train ID Yelling server (TIDY)"]]
12 -** [[Known Issues>>doc:||anchor="Known Issues"]]
13 -* [[Short presentation by Fini>>doc:||anchor="Short presentation by Fini"]]
14 14  
4 +(% class="twikiTocTitle" %)Contents:
5 +
6 +* How to read Train IDs at FLASH
7 +* Introduction
8 +* Train ID reading with local ID reader (Advanced ID Server) recommended
9 +** What does Advanced ID Server do?
10 +** Addresses:
11 +** Resources:
12 +* Direct reading of Train ID
13 +* Train ID sender program (TIDS) obsolete
14 +* Train ID Yelling server (TIDY)
15 +** Known Issues
16 +* Short presentation by Fini
17 +* Old stuff / details on Train ID
18 +
15 15  \\
16 16  
17 17  \\
... ... @@ -33,10 +33,10 @@
33 33  * using a provided program (AdvancedIDServer.exe) running on the user's machine, that synchronizes with the Train ID sender and uses the local clock of the user computer to lower the jitter in reading the ID significantly. The user program connects then locally to the AdvancedIDServer program to get the ID ...
34 34  * direct reading of the ID via TCP socket
35 35  
36 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/aids_principle.png~|~|alt="aids_principle.png" width="440" height="289"~]~]>>attach:aids_principle.png]]
40 +[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/aids_principle.png~|~|alt="aids_principle.png" width="440" height="289"~]~]>>url:http://hasfweb.desy.de/bin/view/Setup/TrainIDimage||shape="rect" class="twikiLink"]]
37 37  Basic pinciple of Train ID distribution at Flash1 with TIDS and AIDS
38 38  
39 -See also this [[sketch>>attach:timing.png]] of the sequence with miliseconds attached to it, to see when the ID updates relative to the beam.
43 +See also this [[sketch>>url:http://hasfweb.desy.de/pub/Setup/TrainID/timing.png||shape="rect"]] of the sequence with miliseconds attached to it, to see when the ID updates relative to the beam.
40 40  
41 41  Note: If the central Train ID server crashes it will not resume the ID numbers where it was. In most times it will restart with ID 0, sometimes it is set to some high number by hand. For this reason you will see Train IDs with some high bit not as often as expected.
42 42  
... ... @@ -48,14 +48,8 @@
48 48  
49 49  It connects to the TCP based TIDY or TIDS server and continuously gets the Ethernet packets with the IDs. These packets are time stamped with microsecond resolution and stored. This runs all the time. Because we have a lot of data we can correlate the local time on that machine (that generated the local time stamps) and the IDs. If the Ethernet connection lags sometimes, chokes, hick ups and messes around with our packets, even drops some... Who cares. By closely monitoring all data we can define a function to calculate the Train ID from the local time on that machine.
50 50  
51 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/AIDS_running.png~|~|alt="Advanced ID Server running"~]~]>>attach:AIDS_running.png]]
55 +[[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/AIDS_running.png||alt="Advanced ID Server running"]]Here it is running on Windows, but of course you can also use it on your Linux machine (build it from the source).
52 52  
53 -* Short presentation by Fini
54 -
55 -Here it is running on Windows, but of course you can also use it on your Linux machine (build it from the source).
56 -
57 -\\
58 -
59 59  The users can access this server via a socket. Use localhost:58051. Connect your program to that socket and you get immediately the actual Train ID for this very moment. (e.g. in the CMD window with {{code language="none"}}telnet localhost 58051{{/code}} ... note:telnet is usually deactivated in win10 and has to be activated) The packet you get looks like this:
60 60  
61 61  {{code language="none"}}3437004.37997 O 818 853{{/code}}
... ... @@ -103,8 +103,8 @@
103 103  
104 104  === Resources: ===
105 105  
106 -* [[attach:AdvancedIDServer.exe]]
107 -* [[attach:AdvancedIDServer-inline.vi]]: Example how to use the Advanced ID Server with Labview (LV11)
104 +* [[AdvancedIDServer.exe>>url:http://hasfweb.desy.de/pub/Setup/TrainID/AdvancedIDServer.exe||shape="rect"]]
105 +* [[AdvancedIDServer-inline.vi>>url:http://hasfweb.desy.de/pub/Setup/TrainID/AdvancedIDServer-inline.vi||shape="rect"]]: Example how to use the Advanced ID Server with Labview (LV11)
108 108  * [[AdvancedIDServer on github~[~[image:url:http://hasfweb.desy.de/pub/TWiki/TWikiDocGraphics/external-link.gif~|~|width="13" height="12"~]~]>>url:https://github.com/Finii/AdvancedIDServer||shape="rect"]]
109 109  
110 110  == Direct reading of Train ID ==
... ... @@ -118,7 +118,7 @@
118 118  * [[flash2cpuxgmd2.desy.de>>url:http://flash2cpuxgmd2.desy.de||shape="rect"]]:58050 (TIDY (//for Flash2//))
119 119  * [[hasfhvctrl.desy.de>>url:http://hasfhvctrl.desy.de||shape="rect"]]:58050 (TIDS) (obsolete)
120 120  
121 -Please see also the sample code for [[C>>attach:bunch-id_readout.c]] and [[LabView 14>>attach:bunch-id_readout.vi]]. Example how to embed the ethernet Train ID code into your Labview project (LV 8.6): [[attach:BunchID-inline.vi]]. We have also [[C++ code>>attach:event-reader.hh]] which can be used to be integrate into existing projects.
119 +Please see also the sample code for [[C>>url:http://hasfweb.desy.de/pub/Setup/TrainID/bunch-id_readout.c||shape="rect"]] and [[LabView 14>>url:http://hasfweb.desy.de/pub/Setup/TrainID/bunch-id_readout.vi||shape="rect"]]. Example how to embed the ethernet Train ID code into your Labview project (LV 8.6): [[BunchID-inline.vi>>url:http://hasfweb.desy.de/pub/Setup/TrainID/BunchID-inline.vi||shape="rect"]]. We have also [[C++ code>>url:http://hasfweb.desy.de/pub/Setup/TrainID/event-reader.hh||shape="rect"]] which can be used to be integrate into existing projects.
122 122  
123 123  The Train-ID for the train is set ~~ 20 ms (for TIDS) before the first photon pulse (at the same time as event 20 or E0) Note the timing differences between TIDS and TIDY in the following sections.
124 124  
... ... @@ -159,7 +159,7 @@
159 159  
160 160  Do not enable "fast shutter eventIDs" if you want to use the Advanced ID Server.
161 161  
162 -[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/Clipboard02.png~|~|alt="Clipboard02.png" width="470" height="420"~]~]>>attach:Clipboard02.png]]
160 +[[image:url:http://hasfweb.desy.de/pub/Setup/TrainID/Clipboard02.png||alt="Clipboard02.png" width="470" height="420"]]
163 163  
164 164  The TIDY: known issues also apply here.
165 165  
... ... @@ -193,10 +193,10 @@
193 193  \\
194 194  
195 195  * 20.9.18: The .exe always try [[hasfhvctrl.desy.de>>url:http://hasfhvctrl.desy.de||shape="rect"]] first. So start with additional parameter via the commandline.
196 -[[attach:AdvancedIDServer.exe]] [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]
194 +[[AdvancedIDServer.exe>>url:http://hasfweb.desy.de/pub/Setup/TrainID/AdvancedIDServer.exe||shape="rect"]] [[hasfcpuexp2.desy.de>>url:http://hasfcpuexp2.desy.de||shape="rect"]]
197 197  
198 198  \\
199 199  
200 200  == Short presentation by Fini ==
201 201  
202 -* [[Here a short summary from Fini - held in the groupmeeting Nov 2014>>attach:eventid.pdf]]
200 +* [[Here a short summary from Fini - held in the groupmeeting Nov 2014>>url:http://hasfweb.desy.de/pub/Setup/TrainID/eventid.pdf||shape="rect"]]