]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
update control scripts
authorhadaq <jan@lxhadeb07>
Tue, 8 Feb 2022 19:00:53 +0000 (20:00 +0100)
committerhadaq <jan@lxhadeb07>
Tue, 8 Feb 2022 19:00:53 +0000 (20:00 +0100)
control/gui/expert/Restart_Hmon
control/gui/expert/Thresholds_STS_Reset
control/gui/power/iTOF_Padiwa_Powercycle
control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs [changed mode: 0644->0755]
control/gui/reboot/50_Reboot_RPC
control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs [changed mode: 0644->0755]
control/gui/reboot/50_Reboot_TOF_fRPC
control/gui/settings/Beam_Abort_Enable [new file with mode: 0755]
control/mdcLVgui/S0/220x
control/mdcLVgui/S5/205x
utils/ECAL_Powercycle.pl

index 8bdb8acd8a78614d6d2db5ac00905d83eb1f7486..a120706aae940efa242378988068402640d0fee0 100755 (executable)
@@ -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
   "
 '
index 5dd8a4249e5228be87669b7ef62bd85912b1897d..f7c9aab6258bd3ab6a6f7b52be04880a82486821 100755 (executable)
@@ -9,8 +9,11 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
   echo \"  <STS_Thr> 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
index 10ad6f369f8eedaf5d46d0ab4cf0faf4ecf10a78..2495fbce1ead4924ea9e461700434a113d3a2542 100755 (executable)
@@ -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
old mode 100644 (file)
new mode 100755 (executable)
index e7a53c1..b2d0e6e
@@ -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" "<I> The Hubs are going to be rebooted." "STARTUP" &
index e47a6f30c28a0aefd71bb249fb7c895b0475b184..7920d46eedd958fab67ea3d7253c2bc0da53574b 100755 (executable)
@@ -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
   "
 '
old mode 100644 (file)
new mode 100755 (executable)
index d01418b00a834fe09dcca04d4bd7870d61e5af3b..7310f33a39987dd355d4540fea231e028d233cf4 100755 (executable)
@@ -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 (executable)
index 0000000..9522c8d
--- /dev/null
@@ -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
+  "
+'
+
+
+
index ab3451a39091bf3116b59b8068d742d91e611c41..1eec6b34b97db46cde5b8c91258f2be5a489c82d 100755 (executable)
@@ -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
 "
 '
index e3690ea41a5588ce4063aadee17fb27c4df1aa14..857f59d1fef287c6024f61c43761a18bc6b19de1 100755 (executable)
@@ -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
 "
index e17da1ab00588f972e1ebf3ecf1df053e08905d1..d53ae4ee1f53c929ac7f3f7ee5614a6300715351 100755 (executable)
@@ -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;