--- /dev/null
+#!/bin/bash
+#echo Reset and Config TrbNet
+#cd ../trbnet/
+#./start.sh
+#cd -
+
+echo Mimosis reset
+cd ../git/daqtools/xml-db
+./put.pl Mimosis 0xfe82 MimosisReset 0
+sleep .1
+./put.pl Mimosis 0xfe82 MimosisReset 1
+sleep .1
+cd -
+
+echo Load basic settings
+./basicsettings.pl -d conf/CONF_allregisters.pl --fpga 0xfe82
+./basicsettings.pl -d conf/CONF_testmode_enable.pl --fpga 0xfe82
+sleep .1
+
+echo Bit and word align
+cd ../git/daqtools/xml-db
+./put.pl Mimosis 0xfe82 InputReset 1
+./put.pl Mimosis 0xfe82 InputReset 0
+sleep .1
+./get.pl Mimosis 0xfe82 DelayPosition
+sleep .1
+./put.pl Mimosis 0xfe82 AlignFixed 0
+sleep .1
+./put.pl Mimosis 0xfe82 AlignFixed 1
+./get.pl Mimosis 0xfe82 LastWord
+cd -
+
+
+./basicsettings.pl -d conf/CONF_testmode_disable.pl --fpga 0xfe82
+
+cd ../git/daqtools/xml-db
+#./get.pl Mimosis 0xfe82 CounterHeader rates #nicht implementiert...
+./get.pl Mimosis 0xfe82 FrameLength
+cd -
+
+echo Config CTS
+trbcmd w 0xc000 0xa146 0x000186a0 #1kHz pulser
+trbcmd loadbit 0xc000 0xa14f 0x000000f0 0x00000080 #trigger type 8
+trbcmd setbit 0xc000 0xa101 0x2 #trigger on