From: Maps Date: Tue, 28 Feb 2023 12:32:38 +0000 (+0100) Subject: startup script for basic sensor settings and bit/word alignment X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=137051be6de973892611852e14b74c9f70564425;p=mimosis_chain.git startup script for basic sensor settings and bit/word alignment --- diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100755 index 0000000..65453fb --- /dev/null +++ b/scripts/start.sh @@ -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