]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
some minor improvements to cosy files
authorHadaq@styx <hadaq@styx>
Thu, 10 Oct 2013 10:05:13 +0000 (12:05 +0200)
committerHadaq@styx <hadaq@styx>
Thu, 10 Oct 2013 10:05:13 +0000 (12:05 +0200)
users/cosy_test/config/programfpga.sh
users/cosy_test/evtbuilder_start.sh
users/cosy_test/evtbuilder_stop.sh

index 7c55359efa3ef7d7b02756cc1f791f0987f4dcee..09025981709cb19489adbd30ae70c5c8b2a4af5d 100755 (executable)
@@ -2,7 +2,7 @@
 
 echo "Programming FPGAs"
 #Start
-../../../tools/command_client.pl -e etraxp129 -c "jam_trbv2 --trb -aRUN_XILINX_PROC  /home/hadaq/tof/fpga/20101110_tof_a.stapl" &
+../../../tools/command_client.pl -e etraxp129 -c "jam_trbv2 --trb -aRUN_XILINX_PROC /home/hadaq/tof/fpga/20120305_tof.stapl " &
 
 #Hub
 ../../../tools/command_client.pl -e etraxp022 -c "jam_trbv2 --addon -aFP /home/hadaq/hub/hub2_fpga1_full_20110517.stp"
index ee1983893bdd131795ac602e96e9898349884ae0..7cf25ec75e1cd93a95bde24f8598b11767714810 100755 (executable)
@@ -2,6 +2,7 @@
 
 dest="/scratch/c/hldfiles"
 sdest="/scratch/c/shldfiles"
+tmpdir="/tmp/eventbuild"
 pref="te"
 sden=0
 
@@ -41,19 +42,24 @@ sdopts="--resdownscale 20 --resnumevents 2000 --respath ${sdest} --ressizelimit
 extraopts=""
 [ ${sden} -eq 1 ] && extraopts="$sdopts"
 
-${HOME}/bin/evtbuilder_stop.sh
+./evtbuilder_stop.sh
 
-source ${HOME}/bin/trbnet_env.sh
+[ ! -e $tmpdir ] && mkdir -p $tmpdir
+cd $tmpdir
 
-exec uxterm -bg khaki -geometry 120x20+900+45 -e "/home/hadaq/bin/daq_evtbuild -m 3 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file ${extraopts}; read ; bash" &
+# source ${HOME}/bin/trbnet_env.sh
+
+exec uxterm -bg khaki -geometry 120x20+900+45 -e "/home/hadaq/bin/daq_evtbuild -m 2 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file ${extraopts}; read; bash" &
+# exec uxterm -bg khaki -geometry 120x20+900+45 -e "/home/hadaq/bin/daq_evtbuild -m 3 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file ${extraopts}; read ; bash" &
 pid=$!
-echo $pid > ~/trbsoft/.daq_evtbuild.pid
+echo $pid > $tmpdir/.daq_evtbuild.pid
 
 sleep 1
 
-exec uxterm -bg tan -geometry 120x20+900+345 -e "/home/hadaq/bin/daq_netmem -m 3 -i UDP:0.0.0.0:50000 -i UDP:0.0.0.0:50008 -i UDP:0.0.0.0:50009 -q 32 -d 1 -S test ; read ; bash " &
+exec uxterm -bg tan -geometry 120x20+900+345 -e "/home/hadaq/bin/daq_netmem -m 2 -i UDP:0.0.0.0:50008 -i UDP:0.0.0.0:50009 -q 32 -d 1 -S test ;  " &
+# exec uxterm -bg tan -geometry 120x20+900+345 -e "/home/hadaq/bin/daq_netmem -m 3 -i UDP:0.0.0.0:50000 -i UDP:0.0.0.0:50008 -i UDP:0.0.0.0:50009 -q 32 -d 1 -S test ; read ; bash " &
 pid=$!
-echo $pid > ~/trbsoft/.daq_netmem.pid
+echo $pid > $tmpdir/.daq_netmem.pid
 
-echo ${dest} > ${HOME}/trbsoft/.hldfilesdir
-echo ${sdest} > ${HOME}/trbsoft/.shldfilesdir
+echo ${dest} > $tmpdir/.hldfilesdir
+echo ${sdest} > $tmpdir/.shldfilesdir
index feebd430daef8cc4d6e32a7fe1bd9353fc26ec6c..40653b133f2853a445f40b2e5bba81c8b7dbd01b 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+tmpdir="/tmp/eventbuild"
+
 killpid() {
        local pidf=$1
 
@@ -18,9 +20,9 @@ killpid() {
        fi
 }
 
-pidf=${HOME}/trbsoft/.daq_evtbuild.pid
+pidf=$tmpdir/.daq_evtbuild.pid
 killpid $pidf
 
-pidf=${HOME}/trbsoft/.daq_netmem.pid
+pidf=$tmpdir/.daq_netmem.pid
 killpid $pidf