]> jspc29.x-matter.uni-frankfurt.de Git - mimosis_chain.git/commitdiff
added some modified startup scripts
authorMaps <maps@ikf>
Thu, 12 Dec 2024 10:49:31 +0000 (11:49 +0100)
committerMaps <maps@ikf>
Thu, 12 Dec 2024 10:49:31 +0000 (11:49 +0100)
scripts/start_ci0.sh [new file with mode: 0755]
scripts/start_ci7.sh [new file with mode: 0755]

diff --git a/scripts/start_ci0.sh b/scripts/start_ci0.sh
new file mode 100755 (executable)
index 0000000..e3b2ae0
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+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
+mimosis -c 0 -f 0xfe82 -a load -w ./conf/CONF_allregisters_norsclk.pl; sleep .1
+mimosis -c 0 -f 0xfe82 -a load -w ./conf/CONF_testmode_enable.pl; 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 -
+
+mimosis -c 0 -f 0xfe82 -a load ./conf/CONF_testmode_disable.pl
+
+cd ../git/daqtools/xml-db
+#./get.pl Mimosis 0xfe82 CounterHeader rates #nicht implementiert...
+./get.pl Mimosis 0xfe82 FrameLength
+cd -
+
+echo Config CTS
+if [[ "$DAQOPSERVER" == "jspc29:150" ]]; then
+    #01.317 setup
+    trbcmd w       0xc000 0xa146 0x000186a0   #1kHz pulser
+    trbcmd loadbit 0xc000 0xa14f 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xc000 0xa101 0x2  #trigger on
+elif [[ "$DAQOPSERVER" == "jspc29:7" ]]; then
+    #01.317 setup
+    trbcmd w       0xfe82 0xa12c 0x000061a8   #4kHz pulser
+    trbcmd loadbit 0xfe82 0xa12e 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xfe82 0xa101 0x2  #trigger on
+elif [[ "$DAQOPSERVER" == "jspc29:31" ]]; then
+    #Probestation setup
+    trbcmd w       0xc100 0xa13b 0x000186a0   #1kHz pulser
+    trbcmd loadbit 0xc100 0xa144 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xc100 0xa101 0x2  #trigger on
+else
+    echo "problem.."
+fi
diff --git a/scripts/start_ci7.sh b/scripts/start_ci7.sh
new file mode 100755 (executable)
index 0000000..5aad2ce
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+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
+mimosis -c 7 -f 0xfe82 -a load -w ./conf/CONF_allregisters_norsclk.pl; sleep .1
+mimosis -c 7 -f 0xfe82 -a load -w ./conf/CONF_testmode_enable.pl; 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 -
+
+mimosis -c 7 -f 0xfe82 -a load ./conf/CONF_testmode_disable.pl
+
+cd ../git/daqtools/xml-db
+#./get.pl Mimosis 0xfe82 CounterHeader rates #nicht implementiert...
+./get.pl Mimosis 0xfe82 FrameLength
+cd -
+
+echo Config CTS
+if [[ "$DAQOPSERVER" == "jspc29:150" ]]; then
+    #01.317 setup
+    trbcmd w       0xc000 0xa146 0x000186a0   #1kHz pulser
+    trbcmd loadbit 0xc000 0xa14f 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xc000 0xa101 0x2  #trigger on
+elif [[ "$DAQOPSERVER" == "jspc29:7" ]]; then
+    #01.317 setup
+    trbcmd w       0xfe82 0xa12c 0x000061a8   #4kHz pulser
+    trbcmd loadbit 0xfe82 0xa12e 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xfe82 0xa101 0x2  #trigger on
+elif [[ "$DAQOPSERVER" == "jspc29:31" ]]; then
+    #Probestation setup
+    trbcmd w       0xc100 0xa13b 0x000186a0   #1kHz pulser
+    trbcmd loadbit 0xc100 0xa144 0x000000f0 0x00000080  #trigger type 8
+    trbcmd setbit  0xc100 0xa101 0x2  #trigger on
+else
+    echo "problem.."
+fi