#!/bin/bash
export DAQOPSERVER=localhost:38
# display fpgas loop:
-while true; do trbcmd i 0xffff ; 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; sleep 1; clear ; 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 MBOs; " $tdcs " = Number of sinlge FPGAS " $(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