From: hadaq Date: Tue, 1 Feb 2022 23:10:07 +0000 (+0100) Subject: new control gui scripts X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=6fed09abb85753a0279d06244df4ccdbd181a276;p=hadesdaq.git new control gui scripts --- diff --git a/control/gui/Buttons2.pm b/control/gui/Buttons2.pm index 4ced96a..9732790 100644 --- a/control/gui/Buttons2.pm +++ b/control/gui/Buttons2.pm @@ -103,9 +103,6 @@ sub NEW { my $vl_gb1 = Qt::VBoxLayout( $groupBox_1 ); $self->{vl_gb1} = $vl_gb1; $vl_gb1->setObjectName( "vl_gb1" ); - - - $horizontalLayout->addWidget( $groupBox_1 ); @@ -115,33 +112,43 @@ sub NEW { my $vl_gb2 = Qt::VBoxLayout( $groupBox_2 ); $self->{vl_gb2} = $vl_gb2; $vl_gb2->setObjectName( "vl_gb2" ); - $horizontalLayout->addWidget( $groupBox_2 ); + my $groupBox_3 = Qt::GroupBox( $centralwidget ); $self->{groupBox_3} = $groupBox_3; $groupBox_3->setObjectName( "groupBox_3" ); my $vl_gb3 = Qt::VBoxLayout( $groupBox_3 ); $self->{vl_gb3} = $vl_gb3; $vl_gb3->setObjectName( "vl_gb3" ); - $horizontalLayout->addWidget( $groupBox_3 ); + my $groupBox_6 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_6} = $groupBox_6; + $groupBox_6->setObjectName( "groupBox_6" ); + my $vl_gb6 = Qt::VBoxLayout( $groupBox_6 ); + $self->{vl_gb6} = $vl_gb6; + $vl_gb6->setObjectName( "vl_gb6" ); + $horizontalLayout->addWidget( $groupBox_6 ); + + my $groupBox_7 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_7} = $groupBox_7; + $groupBox_7->setObjectName( "groupBox_7" ); + my $vl_gb7 = Qt::VBoxLayout( $groupBox_7 ); + $self->{vl_gb7} = $vl_gb7; + $vl_gb7->setObjectName( "vl_gb7" ); + $horizontalLayout->addWidget( $groupBox_7 ); my $groupBox_4 = Qt::GroupBox( $centralwidget ); $self->{groupBox_4} = $groupBox_4; $groupBox_4->setObjectName( "groupBox_4" ); - #$groupBox_3->setCheckable(1); #$groupBox_3->setChecked(0); $groupBox_4->hide(); - - my $vl_gb4 = Qt::VBoxLayout( $groupBox_4 ); $self->{vl_gb4} = $vl_gb4; $vl_gb4->setObjectName( "vl_gb4" ); - $horizontalLayout->addWidget( $groupBox_4 ); @@ -151,7 +158,6 @@ sub NEW { my $vl_gb5 = Qt::VBoxLayout( $groupBox_5 ); $self->{vl_gb5} = $vl_gb5; $vl_gb5->setObjectName( "vl_gb5" ); - $horizontalLayout->addWidget( $groupBox_5 ); @@ -160,7 +166,6 @@ sub NEW { $self->{vl_top} = $vl_top; $vl_top->setObjectName( "vl_top" ); $vl_top->setContentsMargins(0, 0, 0, 0 ); - $vl_mw->addLayout($vl_top); $vl_mw->addLayout($horizontalLayout); @@ -222,6 +227,12 @@ sub NEW { $dir = "eb"; make_buttons($self, $dir, \$cur_button_number, $groupBox_3, $vl_gb3); + $dir = "settings"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_6, $vl_gb6); + + $dir = "reboot"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_7, $vl_gb7); + $dir = "expert"; make_buttons($self, $dir, \$cur_button_number, $groupBox_4, $vl_gb4); @@ -249,10 +260,12 @@ sub retranslateUi { my ( $self, $mainWindow ) = @_; $mainWindow->setWindowTitle( Qt::Application::translate( 'MainWindow', "DAQ-Control", undef, Qt::Application::UnicodeUTF8() ) ); $self->{groupBox_1}->setTitle( Qt::Application::translate( 'MainWindow', "DAQ-Operator", undef, Qt::Application::UnicodeUTF8() ) ); - $self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Monitor Tools", undef, Qt::Application::UnicodeUTF8() ) ); - $self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Eventbuilder Tools", undef, Qt::Application::UnicodeUTF8() ) ); - $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Expert Tools", undef, Qt::Application::UnicodeUTF8() ) ); - $self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Power Tools", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Monitor", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Eventbuilder", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Expert", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Power", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_6}->setTitle( Qt::Application::translate( 'MainWindow', "Settings", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_7}->setTitle( Qt::Application::translate( 'MainWindow', "Reboot", undef, Qt::Application::UnicodeUTF8() ) ); # $self->{pushButton}->setText( Qt::Application::translate( 'MainWindow', "Quit DAQ-Control", undef, Qt::Application::UnicodeUTF8() ) ); $self->{checkBox}->setText( Qt::Application::translate( 'MainWindow', "Show Expert Tools", undef, Qt::Application::UnicodeUTF8() ) ); @@ -323,7 +336,7 @@ my \$icon$i = Qt::Icon; \$icon$i->addPixmap(Qt::Pixmap(\"$icon_path\"), Qt::Icon::Normal(), Qt::Icon::Off() ); \$pb$i->setIcon( \$icon$i ); -\$pb$i->setIconSize( Qt::Size(50, 50) ); +\$pb$i->setIconSize( Qt::Size(40, 40) ); |; diff --git a/control/gui/daq/40_ReSync_Missing_OEP b/control/gui/daq/40_ReSync_OEP similarity index 100% rename from control/gui/daq/40_ReSync_Missing_OEP rename to control/gui/daq/40_ReSync_OEP diff --git a/control/gui/eb/29_BEAM_Files b/control/gui/eb/29_BEAM_Files index cf2f0ca..096094c 100755 --- a/control/gui/eb/29_BEAM_Files +++ b/control/gui/eb/29_BEAM_Files @@ -21,7 +21,7 @@ $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " EBs are going to be changed xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Setting file prefix be" /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix=be&oninit=10\" echo set prefix te on BNET master controller diff --git a/control/gui/eb/50_COSMICS_Files b/control/gui/eb/50_COSMICS_Files index c402517..9c4ff3f 100755 --- a/control/gui/eb/50_COSMICS_Files +++ b/control/gui/eb/50_COSMICS_Files @@ -1,32 +1,17 @@ #!/bin/bash -# notifyall.sh "DAQ" " Eventbuilders are being restarted." "EB" & - -# ssh -X hadaq@lxhadesdaq " -# xterm -geometry 80x24 -bg orange -fg black -e bash -c ' -# echo "Starting Eventbuilders with prefix co" -# cd ~/trbsoft/hadesdaq/evtbuild/ -# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p co -# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10\" -# echo set prefix CO on BNET master controller -# sleep 2 -# -# ' -# " -#/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders have been started. Writing Cosmics Files" "EB" & - export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "change the EBs to Cosmic Files") if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " EBs are going to be changed to write cosmic files." "EB" & xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " - echo "Setting file prefix co" - /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix=co&oninit=10\" - echo set prefix te on BNET master controller - sleep 2 + ssh hadaq@lxhadesdaqp " + echo "Setting file prefix co" + /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix=co&oninit=10\" + echo set prefix te on BNET master controller + sleep 2 " ' - $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are writing Cosmics Files." "EB" & +$HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are writing Cosmics Files." "EB" & diff --git a/control/gui/eb/52_TEST_File b/control/gui/eb/52_TEST_File index 697972b..0dab9d1 100755 --- a/control/gui/eb/52_TEST_File +++ b/control/gui/eb/52_TEST_File @@ -1,27 +1,12 @@ #!/bin/bash -# notifyall.sh "DAQ" " Eventbuilders are being restarted." "EB" & - -# ssh -X hadaq@lxhadesdaq " -# xterm -geometry 80x24 -bg orange -fg black -e bash -c ' -# echo "Starting Eventbuilders with prefix te" -# cd ~/trbsoft/hadesdaq/evtbuild/ -# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10\" -# echo set prefix te on BNET master controller -# sleep 2 -# ' -# " -# -# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders have been started. Writing test files" "EB" & - export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "change the EBs to Test Files") if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " EBs are going to be changed to write test files." "EB" & xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Setting file prefix te" /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix=te&oninit=10\" echo set prefix te on BNET master controller diff --git a/control/gui/eb/55_NO_FILE b/control/gui/eb/55_NO_FILE index ed6cdb2..5b32ab1 100755 --- a/control/gui/eb/55_NO_FILE +++ b/control/gui/eb/55_NO_FILE @@ -1,29 +1,18 @@ #!/bin/bash -# notifyall.sh "DAQ" " Eventbuilders are being restarted." "EB" & - -# ssh -X hadaq@lxhadesdaq " -# xterm -geometry 80x24 -bg orange -fg black -e bash -c ' -# echo "Starting Eventbuilder , writing NO FILES" -# cd ~/trbsoft/hadesdaq/evtbuild/ -# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix='--'&oninit=10\" -# -# ' -# " -# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders have been started. NO FILES are being written" "EB" & - export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "change the EBs to \"No-Files\"") if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " EBs are going to be changed to write no files." "EB" & -ssh -X hadaq@lxhadesdaq " xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - echo "Setting file prefix --n NO FILES" - /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix='--'&oninit=10\" - echo set prefix -- on BNET master controller - sleep 2 - ' -" +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh hadaq@lxhadesdaq " + echo "Setting file prefix --n NO FILES" + /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb12:8099/Master/BNET/StartRun/execute?prefix='--'&oninit=10\" + echo set prefix -- on BNET master controller + sleep 2 + " +' + $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are writing NO FILES." "EB" & diff --git a/control/gui/eb/70_Set_1_EB b/control/gui/eb/70_Set_1_EB index ae1fec6..450b83d 100755 --- a/control/gui/eb/70_Set_1_EB +++ b/control/gui/eb/70_Set_1_EB @@ -7,10 +7,8 @@ if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are being started with only one builder node." "EB" & - - xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Starting Eventbuilders with one BNET builder node" cd ~/trbsoft/hadesdaq/evtbuild/ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 1 diff --git a/control/gui/eb/74_Set_5_EB b/control/gui/eb/74_Set_5_EB index 2ecf860..c717e1f 100755 --- a/control/gui/eb/74_Set_5_EB +++ b/control/gui/eb/74_Set_5_EB @@ -8,7 +8,7 @@ if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are being started with 5 builder nodes." "EB" & xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Starting Eventbuilders with 5 BNET builder nodes" cd ~/trbsoft/hadesdaq/evtbuild/ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 5 diff --git a/control/gui/eb/77_Set_10_EB b/control/gui/eb/77_Set_10_EB index 936af40..af979db 100755 --- a/control/gui/eb/77_Set_10_EB +++ b/control/gui/eb/77_Set_10_EB @@ -8,7 +8,7 @@ if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are being started with 10 builder nodes." "EB" & xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Starting Eventbuilders with 10 BNET builder nodes" cd ~/trbsoft/hadesdaq/evtbuild/ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 10 diff --git a/control/gui/eb/78_Set_15_EB b/control/gui/eb/78_Set_15_EB index 7063d43..3f46e69 100755 --- a/control/gui/eb/78_Set_15_EB +++ b/control/gui/eb/78_Set_15_EB @@ -7,9 +7,8 @@ if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are being started with 15 builder nodes." "EB" & - xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Starting Eventbuilders with 12 BNET builder nodes" cd ~/trbsoft/hadesdaq/evtbuild/ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 15 diff --git a/control/gui/expert/30_Start_TDC_Caltest b/control/gui/expert/30_Start_TDC_Caltest new file mode 100755 index 0000000..ca105dd --- /dev/null +++ b/control/gui/expert/30_Start_TDC_Caltest @@ -0,0 +1,18 @@ +#!/bin/bash +# 100Hz -> 2e6 pulservalue = 0x1E8480 + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "start TDC calibration test file") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " TDC-Calibration testfile is started." "STARTUP" & + + + +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh hadaq@lxhadesdaqp " + /home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_test_start.sh + " +' + +/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders have started TDC-Calibration test file." "EB" & + diff --git a/control/gui/expert/31_Stop_TDC_Caltest b/control/gui/expert/31_Stop_TDC_Caltest new file mode 100755 index 0000000..225253c --- /dev/null +++ b/control/gui/expert/31_Stop_TDC_Caltest @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "stop the TDC calibration test") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " TDC-Calibration testfiles on eventbuilders are going to be stopped." "STARTUP" & + +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh hadaq@lxhadesdaqp " + /home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_test_stop.sh + sleep 30; + " +' + +/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders have stopped TDC-Calibration test." "EB" & + diff --git a/control/gui/expert/65_____Stop_EB b/control/gui/expert/65_____Stop_EB index 013c3b4..82f6b41 100755 --- a/control/gui/expert/65_____Stop_EB +++ b/control/gui/expert/65_____Stop_EB @@ -7,10 +7,8 @@ if [ $myvar == "256" ]; then exit; fi $HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" " Eventbuilders are being stopped." "EB" & - - xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@lxhadesdaqp " + ssh hadaq@lxhadesdaqp " echo "Stopping Eventbuilder 1 - 16" cd ~/trbsoft/hadesdaq/evtbuild/ ./start_eb_gbe.pl -e stop -n 1-16 diff --git a/control/gui/expert/Reset_Beamabort_Error b/control/gui/expert/Reset_Beamabort_Error new file mode 100755 index 0000000..d0f0ddd --- /dev/null +++ b/control/gui/expert/Reset_Beamabort_Error @@ -0,0 +1,4 @@ +#!/bin/bash + +ssh hadeswrp02 /home/hadaq/bin/reset_beamabort_error.sh + diff --git a/control/gui/expert/Restart_Hmon b/control/gui/expert/Restart_Hmon index 8be126f..8bdb8ac 100755 --- a/control/gui/expert/Restart_Hmon +++ b/control/gui/expert/Restart_Hmon @@ -1,7 +1,7 @@ #!/bin/bash xterm -geometry 80x24 -bg orange -fg black -e bash -c ' - ssh -X hadaq@hadesp33 " + ssh hadaq@hadesp33 " echo Re-starting Hmon cd ~/trbsoft/hadesdaq/hmon/ ./stopall.sh diff --git a/control/gui/expert/Start_Speech_Output b/control/gui/expert/Start_Speech_Output index 816fa2f..62d429f 100755 --- a/control/gui/expert/Start_Speech_Output +++ b/control/gui/expert/Start_Speech_Output @@ -1,6 +1,6 @@ #!/bin/bash ssh hadaq@hadesp57 "killall -USR2 speakdaemon.pl" -ssh hadaq@hades33 "killall -USR2 speakdaemon.pl" +ssh hadaq@hadesp33 "killall -USR2 speakdaemon.pl" diff --git a/control/gui/expert/Stop_Speech_Output b/control/gui/expert/Stop_Speech_Output index 55165b7..2b10204 100755 --- a/control/gui/expert/Stop_Speech_Output +++ b/control/gui/expert/Stop_Speech_Output @@ -1,5 +1,5 @@ #!/bin/bash -ssh hadaq@hades33 "killall -USR1 speakdaemon.pl" +ssh hadaq@hadesp33 "killall -USR1 speakdaemon.pl" ssh hadaq@hadesp57 "killall -USR1 speakdaemon.pl; pkill -f espeak" diff --git a/control/gui/monitor/91_Hmon_Snaphot b/control/gui/monitor/91_Hmon_Snaphot index b09aa2d..72e3962 100755 --- a/control/gui/monitor/91_Hmon_Snaphot +++ b/control/gui/monitor/91_Hmon_Snaphot @@ -2,6 +2,6 @@ #ssh -X -l scs lxhadeb06 '. /home/scs/.profile; medm -x hades.adl' xterm -geometry 80x24 -bg green -fg black -e bash -c " - ssh -X hadaq@hades33 'cd /home/hadaq/trbsoft/daq/hmon; PERL5LIB=. perl ./permanent/hmon_archiver.pl once' + ssh hadaq@hadesp33 'cd /home/hadaq/trbsoft/daq/hmon; PERL5LIB=. perl ./permanent/hmon_archiver.pl once' sleep 1000 "; diff --git a/control/gui/monitor/91_Hmon_Snaphot.png b/control/gui/monitor/91_Hmon_Snaphot.png new file mode 100644 index 0000000..c72e754 Binary files /dev/null and b/control/gui/monitor/91_Hmon_Snaphot.png differ diff --git a/control/gui/power/ECAL_Padiwa_Powercycle b/control/gui/power/ECAL_Padiwa_Powercycle index f696d16..f53d923 100755 --- a/control/gui/power/ECAL_Padiwa_Powercycle +++ b/control/gui/power/ECAL_Padiwa_Powercycle @@ -3,7 +3,14 @@ export myvar=$(doyoureallywant.pl "to make a ECAL Padiwa 5V powercycle? There will be no further warnings!") if [ $myvar == "256" ]; then exit; fi -xterm -e " -cd ../../../../hadesdaq/utils; -./ECAL_LV5_Powercycle.sh; + + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + echo \"Starting a STS / fRPC Power-Cycle...\" + cd /home/hadaq/hadesdaq/utils; + PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./ECAL_LV5_Powercycle.sh; + sleep 5 " +' diff --git a/control/gui/power/Hodo_Powercycle b/control/gui/power/Hodo_Powercycle new file mode 100755 index 0000000..61de00f --- /dev/null +++ b/control/gui/power/Hodo_Powercycle @@ -0,0 +1,15 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to powercycle the Hodo detector?") +if [ $myvar == "256" ]; then exit; fi + + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + echo \"Starting a Hodoscope power cycle...\" + cd /home/hadaq/hadesdaq/utils; + bash Powercycle_Hodo.sh; + sleep 5 + " +' diff --git a/control/gui/power/RICH_Powercycle b/control/gui/power/RICH_Powercycle index 54859fa..72e8d6e 100755 --- a/control/gui/power/RICH_Powercycle +++ b/control/gui/power/RICH_Powercycle @@ -6,12 +6,9 @@ if [ $myvar == "256" ]; then exit; fi xterm -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile -# export DAQOPSERVER=hadesp31 echo \"Starting a RICH power cycle...\" - cd /home/hadaq/hadesdaq/utils; + cd /home/hadaq/trbsoft/hadesdaq/utils; PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./RICH_Powercycle.pl; sleep 5 - # /home/hadaq/trbsoft/hadesdaq/utils/RICH_Thr_Call.sh --loading-file /home/hadaq/hadesdaq/rich/trb_dirich_threshold/threshold_files/standard_baselines.thr -l 0 -t 0 50 - # sleep 5 " ' diff --git a/control/gui/power/STS_Fee_Powercycle b/control/gui/power/STS_Fee_Powercycle new file mode 100755 index 0000000..7488048 --- /dev/null +++ b/control/gui/power/STS_Fee_Powercycle @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to make a STS Pasttrec powercycle? ") +if [ $myvar == "256" ]; then exit; fi + + + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + echo \"Starting a STS Pasttrec Power-Cycle...\" + cd /home/hadaq/hadesdaq/utils; + PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./Powercycle_STS_Fee.sh; + sleep 5 +" +' diff --git a/control/gui/power/STS_fRPC_Powercycle b/control/gui/power/STS_fRPC_Powercycle index 084c158..2739a01 100755 --- a/control/gui/power/STS_fRPC_Powercycle +++ b/control/gui/power/STS_fRPC_Powercycle @@ -10,5 +10,8 @@ xterm -e bash --login -c ' cd /home/hadaq/hadesdaq/utils; PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl Powercycle_STS_fRPC.pl; sleep 5 + /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts1.sh + /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts2.sh + sleep 5 " ' diff --git a/control/gui/power/Start_Powercycle b/control/gui/power/Start_Powercycle index 81ea82c..952ff4b 100755 --- a/control/gui/power/Start_Powercycle +++ b/control/gui/power/Start_Powercycle @@ -3,8 +3,13 @@ export myvar=$(doyoureallywant.pl "to powercycle the Start detector?") if [ $myvar == "256" ]; then exit; fi -xterm -e " -cd ../../../../hadesdaq/utils; -./odroid_HMP_Powercycle.sh odroid1 /dev/HAMEG_HAMEG_HO720_020546031; -sleep 5 -" + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + echo \"Starting a Start power cycle...\" + cd /home/hadaq/hadesdaq/utils; + bash Powercycle_Start.sh; + sleep 5 + " +' diff --git a/control/gui/power/Triggerbox_Beam_Powercycle b/control/gui/power/Triggerbox_Beam_Powercycle new file mode 100755 index 0000000..5f866f1 --- /dev/null +++ b/control/gui/power/Triggerbox_Beam_Powercycle @@ -0,0 +1,15 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to powercycle the Triggerbox and Beam Monitoring?") +if [ $myvar == "256" ]; then exit; fi + + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + echo \"Starting a power cycle of Triggerbox and Beam Monitoring...\" + cd /home/hadaq/hadesdaq/utils; + bash Powercycle_Trigger.sh; + sleep 5 + " +' diff --git a/control/gui/power/iTOF_Padiwa_Powercycle b/control/gui/power/iTOF_Padiwa_Powercycle new file mode 100755 index 0000000..10ad6f3 --- /dev/null +++ b/control/gui/power/iTOF_Padiwa_Powercycle @@ -0,0 +1,15 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to powercycle the Start 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...\" + cd /home/hadaq/hadesdaq/utils; + bash Powercycle_itof_padiwa.sh; + sleep 5 + " +' diff --git a/control/gui/power/00_Powercycle_all b/control/gui/power/old/00_Powercycle_all similarity index 93% rename from control/gui/power/00_Powercycle_all rename to control/gui/power/old/00_Powercycle_all index a7ce529..5d81100 100755 --- a/control/gui/power/00_Powercycle_all +++ b/control/gui/power/old/00_Powercycle_all @@ -6,7 +6,7 @@ if [ $myvar == "256" ]; then exit; fi xterm -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile - echo \'Starting power cycle...\' + echo "Starting power cycle..." cd /home/hadaq/hadesdaq/utils; export PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl @@ -18,3 +18,4 @@ xterm -e bash --login -c ' ./MdcTofCentral_Powercycle.pl sleep 5 " +' diff --git a/control/gui/power/RPC_special_PwrCyc b/control/gui/power/old/RPC_special_PwrCyc similarity index 100% rename from control/gui/power/RPC_special_PwrCyc rename to control/gui/power/old/RPC_special_PwrCyc diff --git a/control/gui/daq/50_Reboot_Dirich b/control/gui/reboot/50_Reboot_Dirich similarity index 89% rename from control/gui/daq/50_Reboot_Dirich rename to control/gui/reboot/50_Reboot_Dirich index dd899c1..43be678 100755 --- a/control/gui/daq/50_Reboot_Dirich +++ b/control/gui/reboot/50_Reboot_Dirich @@ -1,6 +1,6 @@ #!/bin/bash -export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot the TRB3s in the system") +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot the DiRich in the system") if [ $myvar == "256" ]; then exit; fi #notifyall.sh "DAQ" " The TRB3 in the system are going to be rebooted." "STARTUP" & @@ -11,7 +11,7 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile trbcmd reload 0xfe51 - sleep 10 + sleep 5 " ' diff --git a/control/gui/daq/50_Reboot_Ecal b/control/gui/reboot/50_Reboot_Ecal similarity index 55% rename from control/gui/daq/50_Reboot_Ecal rename to control/gui/reboot/50_Reboot_Ecal index a112eae..ef39dbf 100755 --- a/control/gui/daq/50_Reboot_Ecal +++ b/control/gui/reboot/50_Reboot_Ecal @@ -1,19 +1,17 @@ #!/bin/bash -export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot the TRB3s in the system") +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot the ECal TDCs in the system") if [ $myvar == "256" ]; then exit; fi -notifyall.sh "DAQ" " The TRB3 in the system are going to be rebooted." "STARTUP" & +notifyall.sh "DAQ" " The ECal TDCs in the system are going to be rebooted." "STARTUP" & xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile trbcmd reload 0xfe71 - trbcmd reload 0xfe61 sleep 10 " ' -notifyall.sh "DAQ" " The ECal TRB3sc are going to be rebooted." "STARTUP" & diff --git a/control/gui/reboot/50_Reboot_Hubs b/control/gui/reboot/50_Reboot_Hubs new file mode 100755 index 0000000..57ab3a3 --- /dev/null +++ b/control/gui/reboot/50_Reboot_Hubs @@ -0,0 +1,21 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot all HUBs in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The Hubs are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #trbcmd reload 0xfe40 + #trbcmd reload 0xfe61 + #trbcmd reload 0xfe65 + #trbcmd reload 0x8000 + trbcmd reload 0xfffe + sleep 10 + " +' + + diff --git a/control/gui/daq/35_Reboot_MDCHub b/control/gui/reboot/50_Reboot_MDC_Hub similarity index 100% rename from control/gui/daq/35_Reboot_MDCHub rename to control/gui/reboot/50_Reboot_MDC_Hub diff --git a/control/gui/reboot/50_Reboot_RPC b/control/gui/reboot/50_Reboot_RPC new file mode 100755 index 0000000..e47a6f3 --- /dev/null +++ b/control/gui/reboot/50_Reboot_RPC @@ -0,0 +1,17 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TDCs of RPC in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The TDCs of RPC are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + trbcmd reload 0xfe73 + sleep 10 + " +' + + diff --git a/control/gui/daq/50_Reboot_Rich_Combiner b/control/gui/reboot/50_Reboot_Rich_Combiner similarity index 100% rename from control/gui/daq/50_Reboot_Rich_Combiner rename to control/gui/reboot/50_Reboot_Rich_Combiner diff --git a/control/gui/reboot/50_Reboot_STS_Hodo b/control/gui/reboot/50_Reboot_STS_Hodo new file mode 100755 index 0000000..e79003e --- /dev/null +++ b/control/gui/reboot/50_Reboot_STS_Hodo @@ -0,0 +1,17 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TDCs of STS HODO in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The TDCs of STS HODO are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + trbcmd reload 0xfe4c + sleep 10 + " +' + + diff --git a/control/gui/daq/50_Reboot_CentralHubs b/control/gui/reboot/50_Reboot_Start_iTOF similarity index 55% rename from control/gui/daq/50_Reboot_CentralHubs rename to control/gui/reboot/50_Reboot_Start_iTOF index 33d2bff..aeeeb0f 100755 --- a/control/gui/daq/50_Reboot_CentralHubs +++ b/control/gui/reboot/50_Reboot_Start_iTOF @@ -1,19 +1,18 @@ #!/bin/bash -export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot the TRB3s in the system") +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TDCs of Start iTOF in the system") if [ $myvar == "256" ]; then exit; fi -notifyall.sh "DAQ" " The TRB3 in the system are going to be rebooted." "STARTUP" & +notifyall.sh "DAQ" " The TDCs of Start iTOF are going to be rebooted." "STARTUP" & xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " source /home/hadaq/.bash_profile - trbcmd reload 0xfe65 - trbcmd reload 0x8000 + trbcmd reload 0xfe74 + trbcmd reload 0xfe76 sleep 10 " ' -notifyall.sh "DAQ" " The Central Hubs are going to be rebooted." "STARTUP" & diff --git a/control/gui/reboot/50_Reboot_TOF_fRPC b/control/gui/reboot/50_Reboot_TOF_fRPC new file mode 100755 index 0000000..d01418b --- /dev/null +++ b/control/gui/reboot/50_Reboot_TOF_fRPC @@ -0,0 +1,17 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TDCs of TOF fRPC FW in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The TDCs of TOF fRPC FW are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + trbcmd reload 0xfe47 + sleep 10 + " +' + + diff --git a/control/gui/daq/50_Reboot_RICH_Hubs b/control/gui/reboot/old/50_Reboot_RICH_Hubs similarity index 100% rename from control/gui/daq/50_Reboot_RICH_Hubs rename to control/gui/reboot/old/50_Reboot_RICH_Hubs diff --git a/control/gui/expert/Thresholds_ECAL b/control/gui/settings/Thresholds_ECAL similarity index 100% rename from control/gui/expert/Thresholds_ECAL rename to control/gui/settings/Thresholds_ECAL diff --git a/control/gui/expert/Thresholds_RICH b/control/gui/settings/Thresholds_RICH similarity index 100% rename from control/gui/expert/Thresholds_RICH rename to control/gui/settings/Thresholds_RICH diff --git a/control/gui/expert/Thresholds_RPC_fRPC b/control/gui/settings/Thresholds_RPC_fRPC similarity index 100% rename from control/gui/expert/Thresholds_RPC_fRPC rename to control/gui/settings/Thresholds_RPC_fRPC diff --git a/control/gui/expert/Thresholds_STS b/control/gui/settings/Thresholds_STS similarity index 74% rename from control/gui/expert/Thresholds_STS rename to control/gui/settings/Thresholds_STS index de0aacb..3f301bd 100755 --- a/control/gui/expert/Thresholds_STS +++ b/control/gui/settings/Thresholds_STS @@ -9,8 +9,6 @@ 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/set_config_sts1.sh /home/hadaq/trbsoft/hadesdaq/sts/settings/set_config_sts2.sh @@ -19,3 +17,7 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' " ' +# do not do reset each time, do it in the LV powercycle script +# /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts1.sh +# /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts2.sh + diff --git a/control/gui/expert/Thresholds_Start b/control/gui/settings/Thresholds_Start similarity index 83% rename from control/gui/expert/Thresholds_Start rename to control/gui/settings/Thresholds_Start index b9d0a00..c849586 100755 --- a/control/gui/expert/Thresholds_Start +++ b/control/gui/settings/Thresholds_Start @@ -3,7 +3,7 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadaq@lxhadesdaqp " export DAQOPSERVER=hadesp31 - echo \" Setting Thresholds...\" + echo \" Setting Thresholds...\" cd /home/hadaq/trbsoft/hadesdaq/start ./set_threshold_start.sh echo \"Done\" diff --git a/control/gui/expert/Thresholds_TOF b/control/gui/settings/Thresholds_TOF similarity index 100% rename from control/gui/expert/Thresholds_TOF rename to control/gui/settings/Thresholds_TOF diff --git a/control/gui/settings/Thresholds_iTOF b/control/gui/settings/Thresholds_iTOF new file mode 100755 index 0000000..fd7464d --- /dev/null +++ b/control/gui/settings/Thresholds_iTOF @@ -0,0 +1,13 @@ +#!/bin/bash + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + export DAQOPSERVER=hadesp31 + echo \" Setting Thresholds...\" + cd /home/hadaq/trbsoft/hadesdaq/itof + ./set_threshold_itof.sh + echo \"Done\" + sleep 10 +" +' + diff --git a/control/mdcLVgui/S5/225x b/control/mdcLVgui/S5/225x index 3fe734a..3d946a9 100755 --- a/control/mdcLVgui/S5/225x +++ b/control/mdcLVgui/S5/225x @@ -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 3 -S 6 +cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 4 -S 6 sleep 1 " diff --git a/control/mdcLVgui/S5/235x b/control/mdcLVgui/S5/235x index 06909a3..4cd57b7 100755 --- a/control/mdcLVgui/S5/235x +++ b/control/mdcLVgui/S5/235x @@ -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 4 -S 6 +cd ~/trbsoft/hadesdaq/utils && ./MDC_Powercycle_2PSx.pl -P 3 -S 6 sleep 1 "