]> jspc29.x-matter.uni-frankfurt.de Git - daqdocu.git/commitdiff
instruction for analysis packages, mt
authorMichael Traxler <M.Traxler@gsi.de>
Sat, 22 Jun 2013 12:43:24 +0000 (14:43 +0200)
committerMichael Traxler <M.Traxler@gsi.de>
Sat, 22 Jun 2013 12:43:24 +0000 (14:43 +0200)
trb3/main.pdf
trb3/main.tex
trb3/trb3qs_configuration.tex
trb3/trb3qs_daqstartup.tex
trb3/trb3qs_part.tex
trb3/trb3qs_software.tex

index 49309316d7182850c0a51ed7438d3f2658512bbd..759b4ae07e82e9c638aee6630fe373bb427c3289 100644 (file)
Binary files a/trb3/main.pdf and b/trb3/main.pdf differ
index 66a61f5d38ebc473a54cbc769e455f2eb42a701c..341a9bcbdb3df50982005630cc7cd0716f33610c 100644 (file)
 \usepackage{remreset}
 \makeatletter\@removefromreset{footnote}{chapter}\makeatother
 
+%\lstset{morecomment=[l]{//},
+%morecomment=[s]{/*}{*/},
+%morecomment=[n]{(*}{*)},
+%morestring=[b]'',
+%morestring=[d]’}
+
+
+
+\lstset { language = bash, numbers = none, breaklines=true,  stringstyle=\color{black}\ttfamily }
+
 % \lstset{ language = bash,
 %          numbers =left,
 %          stepnumber =1,
index 56028d4cbbccc193e2a78ec0f57a3ab2e11972d0..c037e4ca7ef72f46af1ab6054e49d8c4948602ac 100644 (file)
@@ -26,7 +26,7 @@ servers. Check your system logs to see this requests. Here is example
 
 \begin{lstlisting}[label=dhcp-request,caption=Sample of DHCP request]
  # you must run following command as a root
-\$ watch tail /var/log/messages # it may be different for your system, AYA
+watch tail /var/log/messages # it may be different for your system, AYA
  # now restart your TRB3 and watch incoming messages, you should see something like this
 Nov 29 10:55:18 localhost dhcpd: DHCPDISCOVER from 02:00:be:d9:21:90 via eth0
  # if there is another DHCP in the network then you will see its answer
@@ -171,8 +171,8 @@ commands (see \verb+trbnetd+ command).
 
 Here is example how to start TRBnet and get IDs of all FPGAs on the TRB3
 \begin{lstlisting}[label=,caption=Testing TRBnet for multi TRB3 system]
-\$ TRB3_SERVER=trb033 trbnetd -i 1
-\$ DAQOPSERVER=localhost:1 trbcmd i 0xffff
+TRB3_SERVER=trb033 trbnetd -i 1
+DAQOPSERVER=localhost:1 trbcmd i 0xffff
 0xf3c0  0x7c0000039021d928  0x05
 0xf306  0x9e00000390195f28  0x00
 0xf306  0x5100000390195528  0x01
@@ -184,19 +184,19 @@ If we have several TRB3 and we don't know which TRBnets are assigned to them, we
 can easily find them with following commands
 
 \begin{lstlisting}[label=,caption=Identifying of TRBnet daemons]
-\$ ps ax | grep trbnetd
+ps ax | grep trbnetd
  2556 ?        S      1:15 trbnetd -i 33
 21818 pts/21   S+     0:00 /bin/grep trbnetd
-\$ cat /proc/\$(pgrep -f "trbnetd -i 33")/environ | strings | grep TRB3
+cat /proc/\$(pgrep -f "trbnetd -i 33")/environ | strings | grep TRB3
 TRB3_SERVER=trb033
 \end{lstlisting}
 
 If you are using only one TRB3 then you can also export variables globally
 \begin{lstlisting}[label=lst:rawtrbnet,caption=Recommended way to run TRBnet for single TRB3 system]
-\$ export TRB3_SERVER=trb033
-\$ trbnetd -i 1
-\$ export DAQOPSERVER=localhost:1
-\$ trbcmd i 0xffff
+export TRB3_SERVER=trb033
+trbnetd -i 1
+export DAQOPSERVER=localhost:1
+trbcmd i 0xffff
 0xf3c0  0x7c0000039021d928  0x05
 0xf306  0x9e00000390195f28  0x00
 0xf306  0x5100000390195528  0x01
@@ -227,11 +227,11 @@ system. The middle columns is the unique ID of the FPGA (temp sensor), the last
 column is the FPGA number (0x05 is the central FPGA). To set proper addresses
 execute following command
 \begin{lstlisting}[label=,caption=Updating addresses and serial numbers]
-\$ ~/trbsoft/trb3/merge_serial_address.pl ~/trb3/base/serials_trb3.db ~/trb3/base/addresses_trb3.db  > /dev/null
+~/trbsoft/trb3/merge_serial_address.pl ~/trb3/base/serials_trb3.db ~/trb3/base/addresses_trb3.db  > /dev/null
 \end{lstlisting}
 It will load proper configuration to your TRB3. After this we can check whether our changes made expected result.
 \begin{lstlisting}[label=,caption=Results of addresses changes]
-\$ trbcmd i 0xffff
+trbcmd i 0xffff
 0x8000  0x7c0000039021d928  0x05
 0x1000  0x9e00000390195f28  0x00
 0x1001  0x5100000390195528  0x01
@@ -249,7 +249,7 @@ $\to$ AMT).
 After this your changes should be saved, for this commit changes to the
 repository (requires password).
 \begin{lstlisting}[label=,caption=Commiting changes to repository]
-\$ cvs commit -m "Description of your changes" addresses_trb3.db
+cvs commit -m "Description of your changes" addresses_trb3.db
 \end{lstlisting}
 \begin{warning}
 Be sure that everything is OK, your changes may break system of all
index 2789c2a4ec0777475d5de4ee561305ff637e708d..6d1ee2cd656ed5dcebacc222c68a2326550006db 100644 (file)
@@ -32,8 +32,8 @@ disk location. What more, to allow them to communicate each other you need to
 set the same string key. So in the first terminal we run
 
 \begin{lstlisting}[label=,caption=Running Event Builder{,} part 1]
-\$ cd ~
-\$ daq_evtbuild -m 1 -o /hldfiles -x te -I 1 --ebnum 1 -q 32 -S test -d file
+cd ~
+daq_evtbuild -m 1 -o /hldfiles -x te -I 1 --ebnum 1 -q 32 -S test -d file
 # To generate small files with event builder you need to add these options to command above:
 # --resdownscale 20 --resnumevents 2000 --respath /shldfiles --ressizelimit 80
 \end{lstlisting}
@@ -56,7 +56,7 @@ files and should be adjusted to your system.
 When daq\_evtbuilder is working we need to run daq\_netmem to start capture data
 to file. For this run
 \begin{lstlisting}[label=,caption=Running Event Builder{,} part 2]
-\$ daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test
+daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test
 \end{lstlisting}
 
 where value for parameter \verb+-S+ should be the same like for
index 55ad39bcb1d53f0731c61b53e354b59113f68087..1e9c1166c66a463b225a4429a0b13bc585d8f1c4 100644 (file)
@@ -20,6 +20,7 @@ Note that most set-ups use a openSUSE 64 Bit installation - on other distributio
 \input{trb3qs_software}
 \input{trb3qs_configuration}
 \input{trb3qs_daqstartup}
+\input{trb3qs_analysis}
 \input{trb3qs_webinterface}
 
 %%% Local Variables: 
index e6498fa8b75454ab65b54e7ccf6a1bda650dab14..7d26f422fbd4bf09c5e83d03325f33705041ea86 100644 (file)
@@ -13,14 +13,14 @@ containing software are listed in section \ref{sec:Repo:Software}.
 
 
 \begin{lstlisting}[label=,caption=Preparation of TRB3 tools]
-cd ~/trbsoft/trbnettools
-cat HOWTO_COMPILE.TXT # now you can see all posible ways to compile software
+cd ~/trbsoft/trbnettools
+cat HOWTO_COMPILE.TXT # now you can see all posible ways to compile software
  # we compile for TRB3
-make distclean
-make TRB3=1
-sudo make TRB3=1 install # you need root to install the perl library part
+make distclean
+make TRB3=1
+sudo make TRB3=1 install # you need root to install the perl library part
  # now export your binaries to PATH
-export PATH=${HOME}/trbnettools/bin:${PATH}
+export PATH=${HOME}/trbnettools/bin:${PATH}
  # to make life easier add this line above to your profile to to env script
 \end{lstlisting}
 
@@ -30,10 +30,10 @@ run the build script. At the end do not forget to export your new locations to
 
 % \begin{verbatim}
 \begin{lstlisting}[label=,caption=Preparation of Event Builder]
-cd ~/
-git clone git://jspc29.x-matter.uni-frankfurt.de/projects/daqdata
-./make_script.pl
-export PATH=${PATH}:${HOME}/daqdata/bin
+cd ~/
+git clone git://jspc29.x-matter.uni-frankfurt.de/projects/daqdata
+./make_script.pl
+export PATH=${PATH}:${HOME}/daqdata/bin
 # this exports also can be added to profile or init script
 \end{lstlisting}
 % \end{verbatim}
@@ -50,14 +50,14 @@ User can create his own or use already prepared user scripts. To get them he
 must run following
 
 \begin{lstlisting}[label=lst:trb3user,caption=User scripts preparation]
-cd ~
-mkdir userscripts
+cd ~
+mkdir userscripts
 \end{lstlisting}
 
 \begin{lstlisting}[label=,caption=~/userscripts/startup.sh - Variables to be adjusted]
 
 export TRB3_SERVER=trb046
-pkill -f ``trbnetd -i 11''
+pkill -f "trbnetd -i 11"
 $HOME/trbnettools/trbnetd/server/trbnetd -i 11
 
 \end{lstlisting}