From 0c6477d6841d64c764fae0b025120476411152fd Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 28 Jan 2021 10:29:11 +0100 Subject: [PATCH] Update GUI scripts --- control/gui/expert/Reload_RPC_Thresholds | 12 ----------- .../expert/{Set_ECAL_Thr => Thresholds_ECAL} | 0 .../expert/{Set_RICH_Thr => Thresholds_RICH} | 0 control/gui/expert/Thresholds_RPC | 15 +++++++++++++ control/gui/expert/Thresholds_STS | 21 +++++++++++++++++++ .../expert/{Set_TOF_Thr => Thresholds_TOF} | 0 6 files changed, 36 insertions(+), 12 deletions(-) delete mode 100755 control/gui/expert/Reload_RPC_Thresholds rename control/gui/expert/{Set_ECAL_Thr => Thresholds_ECAL} (100%) rename control/gui/expert/{Set_RICH_Thr => Thresholds_RICH} (100%) create mode 100755 control/gui/expert/Thresholds_RPC create mode 100755 control/gui/expert/Thresholds_STS rename control/gui/expert/{Set_TOF_Thr => Thresholds_TOF} (100%) diff --git a/control/gui/expert/Reload_RPC_Thresholds b/control/gui/expert/Reload_RPC_Thresholds deleted file mode 100755 index f41d2fd..0000000 --- a/control/gui/expert/Reload_RPC_Thresholds +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - - -xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - echo Reloading RPC thresholds - cd /home/hadaq/trbsoft/hadesdaq/rpc/utilities/ - ./setTriggerBoardSX.sh - ./setThresholdsAll.sh - sleep 5 -' - -notifyall.sh "DAQ" " RPC-Thresholds have been reloaded." "RPC" & diff --git a/control/gui/expert/Set_ECAL_Thr b/control/gui/expert/Thresholds_ECAL similarity index 100% rename from control/gui/expert/Set_ECAL_Thr rename to control/gui/expert/Thresholds_ECAL diff --git a/control/gui/expert/Set_RICH_Thr b/control/gui/expert/Thresholds_RICH similarity index 100% rename from control/gui/expert/Set_RICH_Thr rename to control/gui/expert/Thresholds_RICH diff --git a/control/gui/expert/Thresholds_RPC b/control/gui/expert/Thresholds_RPC new file mode 100755 index 0000000..0674468 --- /dev/null +++ b/control/gui/expert/Thresholds_RPC @@ -0,0 +1,15 @@ +#!/bin/bash + + +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo Reloading RPC thresholds + cd /home/hadaq/trbsoft/hadesdaq/rpc/ + /home/hadaq/trbsoft/daq/rpc/trb3sc/thresholds/resetThresholdAllJan.sh + /home/hadaq/trbsoft/daq/rpc/setAllMultBoard.sh + +# ./setTriggerBoardSX.sh +# ./setThresholdsAll.sh + sleep 5 +' + +notifyall.sh "DAQ" " RPC-Thresholds have been reloaded." "RPC" & diff --git a/control/gui/expert/Thresholds_STS b/control/gui/expert/Thresholds_STS new file mode 100755 index 0000000..de0aacb --- /dev/null +++ b/control/gui/expert/Thresholds_STS @@ -0,0 +1,21 @@ +#!/bin/bash +export myvar=$(doyoureallywant.pl "to reset the STS thresholds?") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@hadesp33 " + export DAQOPSERVER=hadesp31 + echo \" Connected to hades33...\" + echo \" Setting Thresholds...\" + cd /home/hadaq/trbsoft/hadesdaq/sts + + /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts1.sh + /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts2.sh + /home/hadaq/trbsoft/hadesdaq/sts/settings/set_config_sts1.sh + /home/hadaq/trbsoft/hadesdaq/sts/settings/set_config_sts2.sh + + echo \"Loading STS Pasttrec settings finished\" + sleep 10 +" +' + diff --git a/control/gui/expert/Set_TOF_Thr b/control/gui/expert/Thresholds_TOF similarity index 100% rename from control/gui/expert/Set_TOF_Thr rename to control/gui/expert/Thresholds_TOF -- 2.43.0