]> jspc29.x-matter.uni-frankfurt.de Git - mimosis_chain.git/commitdiff
startup script for basic sensor settings and bit/word alignment
authorMaps <maps@ikf>
Tue, 28 Feb 2023 12:32:38 +0000 (13:32 +0100)
committerMaps <maps@ikf>
Tue, 28 Feb 2023 12:32:38 +0000 (13:32 +0100)
scripts/start.sh [new file with mode: 0755]

diff --git a/scripts/start.sh b/scripts/start.sh
new file mode 100755 (executable)
index 0000000..65453fb
--- /dev/null
@@ -0,0 +1,44 @@
+#!/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