#!/bin/bash
#Disable second TRB3 & unused ADC FPGA
-trbcmd w 0x8000 0xc0 0x0fe8
-trbcmd w 0x8000 0xc1 0x0fe8
-trbcmd w 0x8000 0xc3 0x0ff8
+trbcmd w 0xc000 0xc0 0x0ff9
+trbcmd w 0xc000 0xc1 0x0ff9
+trbcmd w 0xc000 0xc3 0x0ff9
cd ../../tools/
-./adc.pl 0xfe4b init
-./adc.pl 0xfe4b adc_phase 1
+./adc.pl 0x5003 init
cd ../users/frankfurt_test
cd $tmpdir
-if [ $num = 1 ]; then
- exec uxterm -fg black -bg khaki -geometry 120x20+0+45 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_evtbuild -m 1 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file; read; bash" &
-fi
-if [ $num = 2 ]; then
- exec uxterm -fg black -bg khaki -geometry 120x20+0+45 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_evtbuild -m 2 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file \
-${extraopts}; read; bash" &
-fi
+#if [ "$num" -eq "1" ] ; then
+ exec uxterm -fg black -bg khaki -geometry 120x20+0+45 -e "daq_evtbuild -m 1 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file; read; bash" &
+#fi
+#if [ "$num" -eq "2" ]; then
+# exec uxterm -fg black -bg khaki -geometry 120x20+0+45 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_evtbuild -m 2 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file \
+#${extraopts}; read; bash" &
+#fi
pid=$!
echo $pid > $tmpdir/.daq_evtbuild.pid
sleep 1
-if [ $num = 1 ]; then
- exec uxterm -fg black -bg tan -geometry 120x20+0+345 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test ; " &
-fi
+#if [ "$num" -eq "1" ]; then
+ exec uxterm -fg black -bg tan -geometry 120x20+0+345 -e "daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test ; " &
+#fi
-if [ $num = 2 ]; then
- exec uxterm -fg black -bg tan -geometry 120x20+0+345 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_netmem -m 2 -i UDP:0.0.0.0:50000 -i UDP:0.0.0.0:50003 -q 32 -d 1 -S test ; " &
-fi
+#if [ "$num" -eq "2" ]; then
+# exec uxterm -fg black -bg tan -geometry 120x20+0+345 -e "/d/jspc22/trb/git/daqdata/hadaq/daq_netmem -m 2 -i UDP:0.0.0.0:50000 -i UDP:0.0.0.0:50003 -q 32 -d 1 -S test ; " &
+#fi
pid=$!
echo $pid > $tmpdir/.daq_netmem.pid
0x8100 0 0x8100 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7
0x8200 0 0x8200 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7
0x8820 0 0x8200 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7
+ 0xc000 0 0x8000 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7
0x8100 0 0x546C5E8B 0x0008 0xc0a800fe 0xc352 0xdead8100 0x0230 0xc0a80088 0xc350 0x0578
0x8200 0 0x546C5E8B 0x0008 0xc0a800fe 0xc353 0xdead8200 0x0230 0xc0a80089 0xc350 0x0578
0x8820 0 0x546C5E8B 0x0008 0xc0a800fe 0xc354 0xdead8820 0x0230 0xc0a8008a 0xc350 0x0578
+ 0xc000 0 0x546C5E8B 0x0008 0xc0a800fe 0xc351 0xdead8000 0x0230 0xc0a8008b 0xc350 0x0578
+
+
trbcmd s 0xef000003133e3228 0x03 0xf103
#90
-trbcmd s 0x2f0000046f397d28 0x05 0x8000
+trbcmd s 0x2f0000046f397d28 0x05 0xc000
trbcmd s 0x810000046f398928 0x01 0x5001
trbcmd s 0xa50000046f398628 0x00 0x5000
trbcmd s 0x220000046f399228 0x02 0x5002