From: MDC Test Date: Fri, 11 Jul 2025 09:46:05 +0000 (+0200) Subject: climate chamber fpga count scripts modified X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=6cd9364772aec3e9b7557f5ee86935a9ca387e46;p=hades_mdc_settings.git climate chamber fpga count scripts modified --- diff --git a/helperscripts/fpga_count.sh b/helperscripts/fpga_count.sh index d0132d5..945bb79 100755 --- a/helperscripts/fpga_count.sh +++ b/helperscripts/fpga_count.sh @@ -2,9 +2,11 @@ export DAQOPSERVER=localhost:38; # display number of fpgas : fpgas=$(~/bin/trbcmd i 0xffff | wc -l); -let MBOs=($fpgas-5)/3 ; -echo $MBOs " = Number of MBOs" ; -echo $(( ($fpgas-5) % 3)) " = Number of sinlge FPGAS " + +#let MBOs=($fpgas-5)/3 ; +#echo $MBOs " = Number of MBOs" ; +#echo $(( ($fpgas-5) % 3)) " = Number of sinlge FPGAS " +echo $(( ($fpgas-9) )) " = Number of sinlge MBO - FPGAS " ## reset loop: #while true; do trbcmd reset; sleep 1 ;fpgas=$(trbcmd i 0xffff | wc -l); let MBOs=($fpgas-5)/3 ; echo $MBOs " = Number of MBOs" ; echo $(( ($fpgas-5) % 3)) " = Number of sinlge FPGAS " ;date; done diff --git a/helperscripts/fpga_info_loop.sh b/helperscripts/fpga_info_loop.sh index 9c8ca19..1c031a8 100755 --- a/helperscripts/fpga_info_loop.sh +++ b/helperscripts/fpga_info_loop.sh @@ -1,7 +1,7 @@ #!/bin/bash export DAQOPSERVER=localhost:38 # display fpgas loop: -while true; do sleep 2; fpgas=$(trbcmd i 0xfe90| wc -l); let MBOs=$fpgas ; tdcs=$(trbcmd i 0xfe91| wc -l); echo $MBOs " = Number of MBOs; " $tdcs " = Number of sinlge FPGAS " $(date) ; done +while true; do sleep 2; fpgas=$(trbcmd i 0xfe90| wc -l); let MBOs=$fpgas ; tdcs=$(trbcmd i 0xfe91| wc -l); echo $MBOs " = Number of OEP/MBOs; " $tdcs " = Number of TDCs " $(date) ; done ## reset loop: #while true; do trbcmd reset; sleep 1 ;fpgas=$(trbcmd i 0xffff | wc -l); let MBOs=($fpgas-5)/3 ; echo $MBOs " = Number of MBOs" ; echo $(( ($fpgas-5) % 3)) " = Number of sinlge FPGAS " ;date; done