From 8781ed0eccbc235856e5ce93d7429ed234835a10 Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 8 Feb 2022 20:00:53 +0100 Subject: [PATCH] update control scripts --- control/gui/expert/Restart_Hmon | 2 +- control/gui/expert/Thresholds_STS_Reset | 7 +++++-- control/gui/power/iTOF_Padiwa_Powercycle | 4 ++-- control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs | 2 +- control/gui/reboot/50_Reboot_RPC | 6 ++++++ control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs | 0 control/gui/reboot/50_Reboot_TOF_fRPC | 9 +++++++++ control/gui/settings/Beam_Abort_Enable | 13 +++++++++++++ control/mdcLVgui/S0/220x | 2 +- control/mdcLVgui/S5/205x | 1 + utils/ECAL_Powercycle.pl | 9 +++++++++ 11 files changed, 48 insertions(+), 7 deletions(-) mode change 100644 => 100755 control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs mode change 100644 => 100755 control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs create mode 100755 control/gui/settings/Beam_Abort_Enable diff --git a/control/gui/expert/Restart_Hmon b/control/gui/expert/Restart_Hmon index 8bdb8ac..a120706 100755 --- a/control/gui/expert/Restart_Hmon +++ b/control/gui/expert/Restart_Hmon @@ -6,7 +6,7 @@ xterm -geometry 80x24 -bg orange -fg black -e bash -c ' cd ~/trbsoft/hadesdaq/hmon/ ./stopall.sh ./start.sh #1>/dev/null 2>/dev/null - echo "Hmon has been restarted" + echo Hmon has been restarted sleep 5 " ' diff --git a/control/gui/expert/Thresholds_STS_Reset b/control/gui/expert/Thresholds_STS_Reset index 5dd8a42..f7c9aab 100755 --- a/control/gui/expert/Thresholds_STS_Reset +++ b/control/gui/expert/Thresholds_STS_Reset @@ -9,8 +9,11 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' 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/reset_asics_sts.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/power/iTOF_Padiwa_Powercycle b/control/gui/power/iTOF_Padiwa_Powercycle index 10ad6f3..2495fbc 100755 --- a/control/gui/power/iTOF_Padiwa_Powercycle +++ b/control/gui/power/iTOF_Padiwa_Powercycle @@ -1,13 +1,13 @@ #!/bin/bash -export myvar=$(doyoureallywant.pl "to powercycle the Start detector?") +export myvar=$(doyoureallywant.pl "to powercycle the iTOF detector?") if [ $myvar == "256" ]; then exit; fi xterm -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile - echo \"Starting a Start power cycle...\" + echo \"Starting a iTOF Padiwa power cycle...\" cd /home/hadaq/hadesdaq/utils; bash Powercycle_itof_padiwa.sh; sleep 5 diff --git a/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs b/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs old mode 100644 new mode 100755 index e7a53c1..b2d0e6e --- a/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs +++ b/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs @@ -1,6 +1,6 @@ #!/bin/bash -export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot all HUBs in the system") +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot HUBs on Trb3 in the system") if [ $myvar == "256" ]; then exit; fi notifyall.sh "DAQ" " The Hubs are going to be rebooted." "STARTUP" & diff --git a/control/gui/reboot/50_Reboot_RPC b/control/gui/reboot/50_Reboot_RPC index e47a6f3..7920d46 100755 --- a/control/gui/reboot/50_Reboot_RPC +++ b/control/gui/reboot/50_Reboot_RPC @@ -10,6 +10,12 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile trbcmd reload 0xfe73 + trbcmd reload 0x84c0 + trbcmd reload 0x84c1 + trbcmd reload 0x84c2 + trbcmd reload 0x84c3 + trbcmd reload 0x84c4 + trbcmd reload 0x84c5 sleep 10 " ' diff --git a/control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs b/control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs old mode 100644 new mode 100755 diff --git a/control/gui/reboot/50_Reboot_TOF_fRPC b/control/gui/reboot/50_Reboot_TOF_fRPC index d01418b..7310f33 100755 --- a/control/gui/reboot/50_Reboot_TOF_fRPC +++ b/control/gui/reboot/50_Reboot_TOF_fRPC @@ -10,6 +10,15 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile trbcmd reload 0xfe47 + trbcmd reload 0x86c0 + trbcmd reload 0x86c1 + trbcmd reload 0x86c2 + trbcmd reload 0x86c3 + trbcmd reload 0x86c4 + trbcmd reload 0x86c5 + trbcmd reload 0x8c00 + trbcmd reload 0x8c10 + echo Done sleep 10 " ' diff --git a/control/gui/settings/Beam_Abort_Enable b/control/gui/settings/Beam_Abort_Enable new file mode 100755 index 0000000..9522c8d --- /dev/null +++ b/control/gui/settings/Beam_Abort_Enable @@ -0,0 +1,13 @@ +#!/bin/bash + +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh hadaq@hadesp33 " + echo Enable Beam Abort + ssh hadeswrp02 /home/hadaq/bin/enable_beam_abort.sh + echo Done + sleep 5 + " +' + + + diff --git a/control/mdcLVgui/S0/220x b/control/mdcLVgui/S0/220x index ab3451a..1eec6b3 100755 --- a/control/mdcLVgui/S0/220x +++ b/control/mdcLVgui/S0/220x @@ -9,7 +9,7 @@ xterm -e bash --login -c ' PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 3 -S 1 - +cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 4 -S 1 sleep 1 " ' diff --git a/control/mdcLVgui/S5/205x b/control/mdcLVgui/S5/205x index e3690ea..857f59d 100755 --- a/control/mdcLVgui/S5/205x +++ b/control/mdcLVgui/S5/205x @@ -9,6 +9,7 @@ xterm -e bash --login -c ' PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 1 -S 6 +cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 1 -S 5 sleep 1 " diff --git a/utils/ECAL_Powercycle.pl b/utils/ECAL_Powercycle.pl index e17da1a..d53ae4e 100755 --- a/utils/ECAL_Powercycle.pl +++ b/utils/ECAL_Powercycle.pl @@ -6,12 +6,21 @@ use lib "../nettools/"; use Perl2Epics; use Data::Dumper; +print "First turn off the beam abort system.\n"; + +my $c ="ssh hadeswrp02.hades.gsi.de bin/disable_beam_abort.sh"; +system($c); + print "Connect..\n"; my $s = "HAD:LV:PS:11:SETONOFF"; Perl2Epics::Connect("ECALLV_Power",$s); + Perl2Epics::Put("ECALLV_Power",1); #Off my $data = Perl2Epics::GetAll(); print $data->{"ECALLV_Power"}->{val}."\n"; +print "turned off. Wait 8 seconds\n"; sleep 8; Perl2Epics::Put("ECALLV_Power",0); #On +print "turned on. You can continue!\n"; +sleep 1; -- 2.43.0