From 1d29ba9a7602306ef7db323d59fa4cbca9c3a99f Mon Sep 17 00:00:00 2001 From: "hadaq@CountingHouse" Date: Tue, 14 May 2013 18:28:18 +0200 Subject: [PATCH] added QT-guis --- README.txt | 2 +- control/gui/Buttons2.pm | 378 ++++++++++++++++++ control/gui/call_programs2.pl | 22 + control/gui/call_programs_local.sh | 6 + control/gui/call_programs_wrapper.sh | 5 + control/gui/close_window.png | Bin 0 -> 2662 bytes control/gui/daq/10_Start_DAQ | 21 + control/gui/daq/10_Start_DAQ.png | Bin 0 -> 3257 bytes control/gui/daq/15_Start_Stop_Trigger | 14 + control/gui/daq/15_Start_Stop_Trigger.png | Bin 0 -> 2524 bytes control/gui/daq/20_Reprogram_FPGA | 20 + control/gui/daq/20_Reprogram_FPGA.png | Bin 0 -> 1693 bytes control/gui/daq/30_Reboot_OEP | 9 + control/gui/daq/30_Reboot_OEP.png | Bin 0 -> 3383 bytes control/gui/daq/35_Reboot_MDCHub | 17 + control/gui/daq/40_ReSync_Missing_OEP | 7 + control/gui/daq/40_ReSync_Missing_OEP.png | Bin 0 -> 2146 bytes control/gui/eb/10_Restart_EB | 14 + control/gui/eb/10_Restart_EB.png | Bin 0 -> 2211 bytes control/gui/eb/20_____Stop_EB | 12 + control/gui/eb/20_____Stop_EB.png | Bin 0 -> 2246 bytes control/gui/eb/29_Prefix_Be | 15 + control/gui/eb/30_Prefix_NoFile | 13 + control/gui/eb/40_Prefix_Te | 13 + control/gui/eb/50_Prefix_Co | 13 + control/gui/eb/70_Prefix_Ri | 13 + control/gui/eb/80_Prefix_St | 11 + control/gui/eb/90_Prefix_Md | 11 + control/gui/expert/90_MDC_HighVoltageRamp | 7 + control/gui/expert/CTS_Scope | 3 + control/gui/expert/MDC_LV_Powercycle | 7 + control/gui/expert/MDC_LV_Turn_On_ALL_Relais | 11 + control/gui/expert/RICH_Powercycle | 7 + control/gui/expert/RPC_special_PwrCyc | 13 + control/gui/expert/Reboot RICH | 7 + control/gui/expert/Reload_RPC_Thresholds | 14 + control/gui/expert/Restart_EB_IOC | 12 + control/gui/expert/Restart_Hmon | 15 + control/gui/expert/Start_Speech_Output | 5 + control/gui/expert/Stop_Speech_Output | 6 + control/gui/expert/Wall_Powercycle | 13 + control/gui/hades.gif | Bin 0 -> 1971 bytes control/gui/hades.png | Bin 0 -> 1406 bytes control/gui/monitor/10_CTS_Mon | 19 + control/gui/monitor/10_CTS_Mon.png | Bin 0 -> 7154 bytes control/gui/monitor/20_Hmon | 4 + control/gui/monitor/20_Hmon.png | Bin 0 -> 934 bytes control/gui/monitor/28_Epics | 3 + control/gui/monitor/28_Epics.png | Bin 0 -> 630 bytes control/gui/monitor/30_Epics_EB | 2 + control/gui/monitor/30_Epics_EB.png | Bin 0 -> 223 bytes control/gui/monitor/80_Daq_VNC | 3 + control/gui/monitor/90_Chat | 3 + control/gui/monitor/90_Chat.png | Bin 0 -> 5233 bytes control/mdcHVgui/Buttons2.pm | 399 +++++++++++++++++++ control/mdcHVgui/S1/Plane_1 | 16 + control/mdcHVgui/S1/Plane_2 | 16 + control/mdcHVgui/S1/Plane_3 | 16 + control/mdcHVgui/S1/Plane_4 | 16 + control/mdcHVgui/S2/Plane_1 | 16 + control/mdcHVgui/S2/Plane_2 | 16 + control/mdcHVgui/S2/Plane_3 | 16 + control/mdcHVgui/S2/Plane_4 | 16 + control/mdcHVgui/S3/Plane_1 | 16 + control/mdcHVgui/S3/Plane_2 | 16 + control/mdcHVgui/S3/Plane_3 | 16 + control/mdcHVgui/S3/Plane_4 | 16 + control/mdcHVgui/S4/Plane_1 | 16 + control/mdcHVgui/S4/Plane_2 | 16 + control/mdcHVgui/S4/Plane_3 | 16 + control/mdcHVgui/S4/Plane_4 | 16 + control/mdcHVgui/S5/Plane_1 | 16 + control/mdcHVgui/S5/Plane_2 | 16 + control/mdcHVgui/S5/Plane_3 | 16 + control/mdcHVgui/S5/Plane_4 | 16 + control/mdcHVgui/S6/Plane_1 | 16 + control/mdcHVgui/S6/Plane_2 | 16 + control/mdcHVgui/S6/Plane_3 | 16 + control/mdcHVgui/S6/Plane_4 | 16 + control/mdcHVgui/call_programs2.pl | 22 + control/mdcLVgui/Buttons2.pm | 399 +++++++++++++++++++ control/mdcLVgui/S0/200x | 4 + control/mdcLVgui/S0/210x | 4 + control/mdcLVgui/S0/220x | 5 + control/mdcLVgui/S0/230x | 6 + control/mdcLVgui/S0/Plane_0 | 4 + control/mdcLVgui/S0/Plane_1 | 4 + control/mdcLVgui/S0/Plane_2 | 5 + control/mdcLVgui/S0/Plane_3 | 6 + control/mdcLVgui/S1/201x | 4 + control/mdcLVgui/S1/211x | 4 + control/mdcLVgui/S1/221x | 5 + control/mdcLVgui/S1/231x | 6 + control/mdcLVgui/S1/Plane_0 | 4 + control/mdcLVgui/S1/Plane_1 | 4 + control/mdcLVgui/S1/Plane_2 | 5 + control/mdcLVgui/S1/Plane_3 | 6 + control/mdcLVgui/S2/202x | 4 + control/mdcLVgui/S2/212x | 4 + control/mdcLVgui/S2/222x | 5 + control/mdcLVgui/S2/232x | 6 + control/mdcLVgui/S2/Plane_0 | 4 + control/mdcLVgui/S2/Plane_1 | 4 + control/mdcLVgui/S2/Plane_2 | 5 + control/mdcLVgui/S2/Plane_3 | 6 + control/mdcLVgui/S3/203x | 4 + control/mdcLVgui/S3/213x | 4 + control/mdcLVgui/S3/223x | 5 + control/mdcLVgui/S3/233x | 6 + control/mdcLVgui/S3/Plane_0 | 4 + control/mdcLVgui/S3/Plane_1 | 4 + control/mdcLVgui/S3/Plane_2 | 5 + control/mdcLVgui/S3/Plane_3 | 6 + control/mdcLVgui/S4/204x | 4 + control/mdcLVgui/S4/214x | 4 + control/mdcLVgui/S4/224x | 5 + control/mdcLVgui/S4/234x | 6 + control/mdcLVgui/S4/Plane_0 | 4 + control/mdcLVgui/S4/Plane_1 | 4 + control/mdcLVgui/S4/Plane_2 | 5 + control/mdcLVgui/S4/Plane_3 | 6 + control/mdcLVgui/S5/205x | 4 + control/mdcLVgui/S5/215x | 4 + control/mdcLVgui/S5/225x | 5 + control/mdcLVgui/S5/235x | 6 + control/mdcLVgui/S5/Plane_0 | 4 + control/mdcLVgui/S5/Plane_1 | 4 + control/mdcLVgui/S5/Plane_2 | 5 + control/mdcLVgui/S5/Plane_3 | 6 + control/mdcLVgui/call_programs2.pl | 22 + 130 files changed, 2223 insertions(+), 1 deletion(-) create mode 100644 control/gui/Buttons2.pm create mode 100755 control/gui/call_programs2.pl create mode 100755 control/gui/call_programs_local.sh create mode 100755 control/gui/call_programs_wrapper.sh create mode 100644 control/gui/close_window.png create mode 100755 control/gui/daq/10_Start_DAQ create mode 100644 control/gui/daq/10_Start_DAQ.png create mode 100755 control/gui/daq/15_Start_Stop_Trigger create mode 100644 control/gui/daq/15_Start_Stop_Trigger.png create mode 100755 control/gui/daq/20_Reprogram_FPGA create mode 100644 control/gui/daq/20_Reprogram_FPGA.png create mode 100755 control/gui/daq/30_Reboot_OEP create mode 100644 control/gui/daq/30_Reboot_OEP.png create mode 100755 control/gui/daq/35_Reboot_MDCHub create mode 100755 control/gui/daq/40_ReSync_Missing_OEP create mode 100644 control/gui/daq/40_ReSync_Missing_OEP.png create mode 100755 control/gui/eb/10_Restart_EB create mode 100644 control/gui/eb/10_Restart_EB.png create mode 100755 control/gui/eb/20_____Stop_EB create mode 100644 control/gui/eb/20_____Stop_EB.png create mode 100755 control/gui/eb/29_Prefix_Be create mode 100755 control/gui/eb/30_Prefix_NoFile create mode 100755 control/gui/eb/40_Prefix_Te create mode 100755 control/gui/eb/50_Prefix_Co create mode 100755 control/gui/eb/70_Prefix_Ri create mode 100755 control/gui/eb/80_Prefix_St create mode 100755 control/gui/eb/90_Prefix_Md create mode 100755 control/gui/expert/90_MDC_HighVoltageRamp create mode 100755 control/gui/expert/CTS_Scope create mode 100755 control/gui/expert/MDC_LV_Powercycle create mode 100755 control/gui/expert/MDC_LV_Turn_On_ALL_Relais create mode 100644 control/gui/expert/RICH_Powercycle create mode 100755 control/gui/expert/RPC_special_PwrCyc create mode 100644 control/gui/expert/Reboot RICH create mode 100755 control/gui/expert/Reload_RPC_Thresholds create mode 100755 control/gui/expert/Restart_EB_IOC create mode 100755 control/gui/expert/Restart_Hmon create mode 100755 control/gui/expert/Start_Speech_Output create mode 100755 control/gui/expert/Stop_Speech_Output create mode 100755 control/gui/expert/Wall_Powercycle create mode 100644 control/gui/hades.gif create mode 100644 control/gui/hades.png create mode 100755 control/gui/monitor/10_CTS_Mon create mode 100644 control/gui/monitor/10_CTS_Mon.png create mode 100755 control/gui/monitor/20_Hmon create mode 100644 control/gui/monitor/20_Hmon.png create mode 100755 control/gui/monitor/28_Epics create mode 100644 control/gui/monitor/28_Epics.png create mode 100755 control/gui/monitor/30_Epics_EB create mode 100644 control/gui/monitor/30_Epics_EB.png create mode 100755 control/gui/monitor/80_Daq_VNC create mode 100755 control/gui/monitor/90_Chat create mode 100644 control/gui/monitor/90_Chat.png create mode 100755 control/mdcHVgui/Buttons2.pm create mode 100755 control/mdcHVgui/S1/Plane_1 create mode 100755 control/mdcHVgui/S1/Plane_2 create mode 100755 control/mdcHVgui/S1/Plane_3 create mode 100755 control/mdcHVgui/S1/Plane_4 create mode 100755 control/mdcHVgui/S2/Plane_1 create mode 100755 control/mdcHVgui/S2/Plane_2 create mode 100755 control/mdcHVgui/S2/Plane_3 create mode 100755 control/mdcHVgui/S2/Plane_4 create mode 100755 control/mdcHVgui/S3/Plane_1 create mode 100755 control/mdcHVgui/S3/Plane_2 create mode 100755 control/mdcHVgui/S3/Plane_3 create mode 100755 control/mdcHVgui/S3/Plane_4 create mode 100755 control/mdcHVgui/S4/Plane_1 create mode 100755 control/mdcHVgui/S4/Plane_2 create mode 100755 control/mdcHVgui/S4/Plane_3 create mode 100755 control/mdcHVgui/S4/Plane_4 create mode 100755 control/mdcHVgui/S5/Plane_1 create mode 100755 control/mdcHVgui/S5/Plane_2 create mode 100755 control/mdcHVgui/S5/Plane_3 create mode 100755 control/mdcHVgui/S5/Plane_4 create mode 100755 control/mdcHVgui/S6/Plane_1 create mode 100755 control/mdcHVgui/S6/Plane_2 create mode 100755 control/mdcHVgui/S6/Plane_3 create mode 100755 control/mdcHVgui/S6/Plane_4 create mode 100755 control/mdcHVgui/call_programs2.pl create mode 100755 control/mdcLVgui/Buttons2.pm create mode 100755 control/mdcLVgui/S0/200x create mode 100755 control/mdcLVgui/S0/210x create mode 100755 control/mdcLVgui/S0/220x create mode 100755 control/mdcLVgui/S0/230x create mode 100755 control/mdcLVgui/S0/Plane_0 create mode 100755 control/mdcLVgui/S0/Plane_1 create mode 100755 control/mdcLVgui/S0/Plane_2 create mode 100755 control/mdcLVgui/S0/Plane_3 create mode 100755 control/mdcLVgui/S1/201x create mode 100755 control/mdcLVgui/S1/211x create mode 100755 control/mdcLVgui/S1/221x create mode 100755 control/mdcLVgui/S1/231x create mode 100755 control/mdcLVgui/S1/Plane_0 create mode 100755 control/mdcLVgui/S1/Plane_1 create mode 100755 control/mdcLVgui/S1/Plane_2 create mode 100755 control/mdcLVgui/S1/Plane_3 create mode 100755 control/mdcLVgui/S2/202x create mode 100755 control/mdcLVgui/S2/212x create mode 100755 control/mdcLVgui/S2/222x create mode 100755 control/mdcLVgui/S2/232x create mode 100755 control/mdcLVgui/S2/Plane_0 create mode 100755 control/mdcLVgui/S2/Plane_1 create mode 100755 control/mdcLVgui/S2/Plane_2 create mode 100755 control/mdcLVgui/S2/Plane_3 create mode 100755 control/mdcLVgui/S3/203x create mode 100755 control/mdcLVgui/S3/213x create mode 100755 control/mdcLVgui/S3/223x create mode 100755 control/mdcLVgui/S3/233x create mode 100755 control/mdcLVgui/S3/Plane_0 create mode 100755 control/mdcLVgui/S3/Plane_1 create mode 100755 control/mdcLVgui/S3/Plane_2 create mode 100755 control/mdcLVgui/S3/Plane_3 create mode 100755 control/mdcLVgui/S4/204x create mode 100755 control/mdcLVgui/S4/214x create mode 100755 control/mdcLVgui/S4/224x create mode 100755 control/mdcLVgui/S4/234x create mode 100755 control/mdcLVgui/S4/Plane_0 create mode 100755 control/mdcLVgui/S4/Plane_1 create mode 100755 control/mdcLVgui/S4/Plane_2 create mode 100755 control/mdcLVgui/S4/Plane_3 create mode 100755 control/mdcLVgui/S5/205x create mode 100755 control/mdcLVgui/S5/215x create mode 100755 control/mdcLVgui/S5/225x create mode 100755 control/mdcLVgui/S5/235x create mode 100755 control/mdcLVgui/S5/Plane_0 create mode 100755 control/mdcLVgui/S5/Plane_1 create mode 100755 control/mdcLVgui/S5/Plane_2 create mode 100755 control/mdcLVgui/S5/Plane_3 create mode 100755 control/mdcLVgui/call_programs2.pl diff --git a/README.txt b/README.txt index 9094f53..e0fb804 100644 --- a/README.txt +++ b/README.txt @@ -5,13 +5,13 @@ The repository for all Hades DAQ tools, configurations and start-up scripts. Directories from CVS inspected and partially moved to git: tools +control Directories to check: -control cts evtbuild hub diff --git a/control/gui/Buttons2.pm b/control/gui/Buttons2.pm new file mode 100644 index 0000000..de2d459 --- /dev/null +++ b/control/gui/Buttons2.pm @@ -0,0 +1,378 @@ +package Buttons2; + +use strict; +use warnings; + +use QtCore4 ; +use QtGui4; + +use Data::Dumper; +use QtCore4::debug qw(ambiguous); + + +#use Qt::isa qw(Qt::Widget); +#use QtCore4::isa qw(Qt::Widget); +#use QtCore4; + +use QtCore4::isa qw( Qt::Widget ); + +use QtCore4::slots + hide_expert_checked => ['int']; + + +sub groupBox_3 { + return shift->{groupBox_3}; +} + +sub hide_expert_checked { + my ( $state) = @_; + + if($state == Qt::Unchecked()) { + this->{self}->{groupBox_4}->hide(); + } + else { + this->{self}->{groupBox_4}->show(); + } +} + + +use Data::Dumper; + + + +# # make slots +my $str; +$str = "use QtCore4::slots\n slotQuitPressed => [], "; +foreach my $i (0..150) { + $str .= " slot". $i . "Pressed => [], "; +} +$str .= "slotdummyPressed => [];"; + +#print "will eval command: $str\n"; +eval $str; +#print "error: $@\n"; + + +# } + + + +sub NEW { + my ( $class, $mainWindow ) = @_; + $class->SUPER::NEW($mainWindow); + + my $self = bless {}, $class; + + this->{self} = $self; + + $self->{ra_buttons} = []; + + #print "self: "; print Dumper $self; + #print "this: "; print Dumper this; + + #my $self = $mainWindow; + if ( !defined $mainWindow->objectName() ) { + $mainWindow->setObjectName( "mainWindow" ); + } + #$mainWindow->resize( 800, 600 ); + #$mainWindow->resize( 400, 300 ); + + #$self->{hide_expert_checked} = hide_expert_checked; + + my $centralwidget = Qt::Widget( $mainWindow ); + $self->{centralwidget} = $centralwidget; + $centralwidget->setObjectName( "centralwidget" ); + + my $vl_mw = Qt::VBoxLayout( $centralwidget ); + +# my $layoutWidget = Qt::Widget( $centralwidget ); +# $self->{layoutWidget} = $layoutWidget; +# $layoutWidget->setObjectName( "layoutWidget" ); + #$layoutWidget->setGeometry( Qt::Rect(30, 110, 723, 418) ); +# my $horizontalLayout = Qt::HBoxLayout( $centralwidget ); + my $horizontalLayout = Qt::HBoxLayout( ); + $self->{horizontalLayout} = $horizontalLayout; + $horizontalLayout->setObjectName( "horizontalLayout" ); + $horizontalLayout->setContentsMargins(0, 0, 0, 0 ); + + #$horizontalLayout->addStretch(1); + + my $groupBox_1 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_1} = $groupBox_1; + $groupBox_1->setObjectName( "groupBox_1" ); + my $vl_gb1 = Qt::VBoxLayout( $groupBox_1 ); + $self->{vl_gb1} = $vl_gb1; + $vl_gb1->setObjectName( "vl_gb1" ); + + + + $horizontalLayout->addWidget( $groupBox_1 ); + + + my $groupBox_2 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_2} = $groupBox_2; + $groupBox_2->setObjectName( "groupBox_2" ); + 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_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 ); + + + + my $vl_top = Qt::VBoxLayout( ); + $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); + + +# my $pushButton = Qt::PushButton( $centralwidget ); +# $self->{pushButton} = $pushButton; +# $pushButton->setObjectName( "pushButton" ); + +# my $sizePolicy = Qt::SizePolicy( Qt::SizePolicy::Minimum(), Qt::SizePolicy::Fixed() ); +# $self->{$sizePolicy} = $sizePolicy; +# $sizePolicy->setHorizontalStretch( 0 ); +# $sizePolicy->setVerticalStretch( 0 ); +# $sizePolicy->setHeightForWidth( $pushButton->sizePolicy()->hasHeightForWidth() ); +# $pushButton->setSizePolicy( $sizePolicy ); +# $pushButton->setMinimumSize( Qt::Size(0, 0) ); +# my $icon = Qt::Icon; +# $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); +# $icon->addPixmap(Qt::Pixmap("close_window.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); + #$icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-system-login.png"), Qt::Icon::Normal(), Qt::Icon::On() ); +# $pushButton->setIcon( $icon ); +# $pushButton->setIconSize( Qt::Size(50, 50) ); + +# $vl_top->addWidget( $pushButton ); + + my $checkBox = Qt::CheckBox( $centralwidget ); + $self->{checkBox} = $checkBox; + $checkBox->setObjectName( "checkBox" ); + + $vl_top->addWidget( $checkBox ); + + $mainWindow->setCentralWidget( $centralwidget ); + my $menubar = Qt::MenuBar( $mainWindow ); + $self->{menubar} = $menubar; + $menubar->setObjectName( "menubar" ); + #$menubar->setGeometry( Qt::Rect(0, 0, 800, 25) ); + $mainWindow->setMenuBar( $menubar ); + my $statusbar = Qt::StatusBar( $mainWindow ); + $self->{statusbar} = $statusbar; + $statusbar->setObjectName( "statusbar" ); + $mainWindow->setStatusBar( $statusbar ); + + $self->retranslateUi( $mainWindow ); + + + my $cur_button_number = 0; + + my $dir; + my $buttons = []; + + + $dir = "daq"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_1, $vl_gb1); + #print "cur_button: $cur_button_number\n"; + + $dir = "monitor"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_2, $vl_gb2); + #print "cur_button: $cur_button_number\n"; + + $dir = "eb"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_3, $vl_gb3); + + + $dir = "expert"; + make_buttons($self, $dir, \$cur_button_number, $groupBox_4, $vl_gb4); + #print "cur_button: $cur_button_number\n"; + + #$layoutWidget->updateGeometry(); + + +# Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + + + Qt::Object::connect($checkBox, SIGNAL 'stateChanged(int)' , + this, SLOT 'hide_expert_checked(int)' ); + + Qt::MetaObject::connectSlotsByName( $mainWindow ); + + return $self; + +} + + +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->{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() ) ); + + +} # retranslateUi + + + + +sub make_buttons { + (my $self, my $dir, my $r_current_button_number, my $bgrp, my $layout) = @_; + + #print $bgrp; + #print "current number_; $r_current_button_number\n"; + + my $c = qq"find $dir -maxdepth 1 -type f| sort"; + my @f = qx($c); + + my $i = $$r_current_button_number; + + my $button_list=[]; + + foreach (@f) { + next if /.png$/i; + chomp; + s/.*\///; + next if /\~$/; + push @$button_list, $_; + my $br = $self->{ra_buttons}; + push @{$br}, $_; + } + + + + + foreach my $cur_button_name (@$button_list) { + + + next if ($cur_button_name =~ /.png$/); +# my $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); + my $icon_path = "$dir/$cur_button_name" . ".png"; +# print "path: $icon_path_file \n"; +# my $fh_icon; +# my $res = open($fh_icon, "<", $icon_path_file); +# my @file = <$fh_icon>; +# $fh_icon->close(); + + #/usr/share/icons/hicolor/48x48/apps/ +# my ($icon_name) = grep /Icon=/, @file; +# $icon_name =~ s/Icon=//; +# my $icon_path = "/usr/share/icons/hicolor/48x48/apps/$icon_name"; +# print "got icon path: $icon_path \n"; + + + my $name = $cur_button_name; + $name =~ s/^\d+_//; + $name =~ s/_/ /g; + + + my $com = qq| +my \$pb$i = Qt::PushButton("$cur_button_name", \$bgrp); +\$self->{pb$i} = \$pb$i; +\$layout->addWidget( \$pb$i ); +\$pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, + Qt::Application::UnicodeUTF8() ) ); + +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) ); + +|; + + +# my $pb_$i = Qt::PushButton("$_", \$bgrp); +# $self->{pb$i} = $pb_$i; +# $layout->addWidget( $pb_$i ); +# $pushButton->setIcon( $icon ); +# $pushButton->setIconSize( Qt::Size(50, 50) ); +# $pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, Qt::Application::UnicodeUTF8() ) ); + + +#/usr/share/icons/hicolor/48x48/apps/yast-bootloader.png + + # print "command1: $com\n"; + + #print "command: $com\n"; + eval $com; + print "$@\n" if ($@); + + +#my $iconstr = "$icon" . "$i"; + +$com = qq | +|; + + + + #Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + $com = qq|Qt::Object::connect(\$self->{pb$i}, SIGNAL 'clicked()', this, SLOT 'slot| . $i . qq|Pressed()');|; + #print "command2: $com\n"; + eval $com; + print "error: " , $@ , "\n" if ($@); + + make_subroutine($i, $dir); + + $i++; + #last if $i >=10; + } + + $$r_current_button_number = $i; +} + + +sub make_subroutine { + (my $i, my $dir) = @_; + # make subroutines + #sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + my $str = qq|sub slot| . $i . qq|Pressed { my \$c = this->{self}->{ra_buttons}->[$i]; \$c = "cd $dir; ./\$c &"; print "will execute: \$c\n"; system(\$c); }|; +# my $str = qq|sub slot| . $i . qq|Pressed { print "$i pressed\n"; }|; +#system(\$c); }|; + #print "sub: $str\n"; + eval $str; +} + + +# sub slotQuitPressed { +# exit; +# } + +#sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + +1; diff --git a/control/gui/call_programs2.pl b/control/gui/call_programs2.pl new file mode 100755 index 0000000..360b8c8 --- /dev/null +++ b/control/gui/call_programs2.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +package main; + +use warnings; +use strict; +use QtCore4; +use QtGui4; +use Buttons2; + +sub main { + + my $a = Qt::Application(\@ARGV); + my $w = Qt::MainWindow; + my $u = Buttons2($w); + $w->show(); + exit $a->exec(); +} + + +main(); + diff --git a/control/gui/call_programs_local.sh b/control/gui/call_programs_local.sh new file mode 100755 index 0000000..5166f91 --- /dev/null +++ b/control/gui/call_programs_local.sh @@ -0,0 +1,6 @@ +#!/bin/bash +cd /home/hadaq/trbsoft/daq/control/gui/ +/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0 & + +#cd /home/hadaq/trbsoft/daq/control/gui/ +#/home/hadaq/trbsoft/daq/control/gui/call_programs.pl -geometry -0-0 diff --git a/control/gui/call_programs_wrapper.sh b/control/gui/call_programs_wrapper.sh new file mode 100755 index 0000000..247482a --- /dev/null +++ b/control/gui/call_programs_wrapper.sh @@ -0,0 +1,5 @@ +ssh -X hadesdaq02 "cd /home/hadaq/trbsoft/daq/control/gui/ +/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0" & + +#cd /home/hadaq/trbsoft/daq/control/gui/ +#/home/hadaq/trbsoft/daq/control/gui/call_programs.pl -geometry -0-0 diff --git a/control/gui/close_window.png b/control/gui/close_window.png new file mode 100644 index 0000000000000000000000000000000000000000..a351f32d6ff1c8543121690474e05e6d702eb9ea GIT binary patch literal 2662 zcmV-s3YqnZP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iOD< z3m*($nP}+%014(vL_t(&-o2W8a8%VD$G_)w@7>*OvPnqLkQaf3AR!NusqN@YX?U3j zDIE*ek*O9GK@m#FKU=MxPAzuq%T}$xv|6VXiZ4_g5eR5!>RYH5k`S^aV5yWx9yi(D z`#Sw&H*u5fD~suwIsfe3d(Y={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{lt^WrT2G$73CDJilkvG{BFO`0Py2Q4$zlGP|xJ zhcccJK3*;~CZQ5Y!CB4m1N(apzBK;J$TSs8*Y*DYob7Grp}^vRKFB{f@Y?oB%m=2r z>1P1EZ8xvpR8>_~bQLEUQ!NC5R#8z=)^_unjR3T(`I8BWtkeYm|3VS}-!x<8e-$Dx U6-lIkBme*a07*qoM6N<$f+OqiUjP6A literal 0 HcmV?d00001 diff --git a/control/gui/daq/10_Start_DAQ b/control/gui/daq/10_Start_DAQ new file mode 100755 index 0000000..16d4681 --- /dev/null +++ b/control/gui/daq/10_Start_DAQ @@ -0,0 +1,21 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to restart the DAQ") +if [ $myvar == "256" ]; then exit; fi + +#notifyall.sh "DAQ" " DAQ is going to be restarted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@lxhadesdaq " + source /home/hadaq/.bashrc + echo \" Connected to lxhadesdaq...\" + echo \" Starting DAQ with default settings...\" + cd /home/hadaq/trbsoft/daq/main/ + time bash ./startup_briccolage.sh + sleep 10 +" +' + +#notifyall.sh "DAQ" " DAQ has been started." "STARTUP" & + diff --git a/control/gui/daq/10_Start_DAQ.png b/control/gui/daq/10_Start_DAQ.png new file mode 100644 index 0000000000000000000000000000000000000000..8b4771c5e6c18cc71e223d84534111d1613c8e7f GIT binary patch literal 3257 zcmV;q3`X;bP)yKl%C{ zw?ASu^0X-A5sSvLfB!**Ljgo1Avm0_^#E|yS?K-;mRW9|d;8i2^XJUfG?fT~h(I`u z-MjbU@Zm!U2LmV+<;;P-O>RxoO4OAWd~$sI-XC03SHED}f?Maz(^Q4z1QCHy1bg=$ zKub#tVv#VSkr13t_uHDLm4K_L1ONK?59i-_}lSI)|M88 zLqUXtewa*_;DLQjHGj#wDrVr(70*66z3!%;&#j-PFUT??u>?Nt?nNjRKx<1YBH<9C z;UEZz#OrmpoSb{bEwt>R6)Wmy&iduN`f2)nUPd??$0x1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`jlh literal 0 HcmV?d00001 diff --git a/control/gui/daq/15_Start_Stop_Trigger b/control/gui/daq/15_Start_Stop_Trigger new file mode 100755 index 0000000..b96f215 --- /dev/null +++ b/control/gui/daq/15_Start_Stop_Trigger @@ -0,0 +1,14 @@ +#!/usr/bin/perl +use warnings; +use HADES::TrbNet; +$ENV{'DAQOPSERVER'} = "hades31"; +trb_init_ports() or die "could not reach trbnet-daemon.", trb_strerror(); +my $rh = trb_register_read(0x0003, 0xa0c0) or print trb_strerror() and die; + +if($rh->{3} & 0x400) { + system("trbcmd clearbit 0x0003 0xa0c0 0x400"); + } +else { + system("trbcmd setbit 0x0003 0xa0c0 0x400"); + } + \ No newline at end of file diff --git a/control/gui/daq/15_Start_Stop_Trigger.png b/control/gui/daq/15_Start_Stop_Trigger.png new file mode 100644 index 0000000000000000000000000000000000000000..745cf75ef9b0ec1d40af92eccee74b44ef7c939f GIT binary patch literal 2524 zcmV<22_yE2P)8;h5A1Zqcc5G{v} z6(NpQkdvZy5OmZ%1!t;g1#CN2X9UIV0X5hPD6uLKkno+f%@O@!G*#9H{sOWTcH3!vdva+)HV%s)8-?D|xpMJ{cTek4Uwryl( zWpPlg=5%#6{}W>c`}dQXkwJ0s5q`RQ6^-U8qa!2OY*toQma*BajE;<;(LCj+t5+#5 zK0;R%k8k(w`(T6XiWLC%r(O-+Uvyxvdn*{P{XE?xSO+?*ULDk}cc;ClsiQ4wl&5zjh0SXo(F10pLc zE39}8cyr$05OvQwI#8>NP!|=gYc6E+KtTbOm6g1EH^}nx@)}lFyo4IQ?2F4Qt8157 zUS8(iyFn@|D>+b5@LqFk5(m|4Dk~}&A0K0B$-~mpqR0|UOH01y!3Nh7XvSOX@3qMI z*cg=+6&zHnLz)ZPl$VuJR9J{k*N@xn!sBt{@wi#^cvxI~zrnREtueH?=wWfugU92> z?Q!FFyU^+SDJm?aysT`Exu8v6ZZ7TZ?KqrvoGu40rvtak8DP>Qm|SCUDTJ9NmKGOT z^my=iL_=;jE|*j6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0Xz>8pa1bY zN~MxdKKaClQmG884W+Nw?|DG(#EB}(#77|EaVIaAj*h21(`b0sq2ZZELq~_7XB`?k z#9VxQ0*Q%YWlM)k26!mACr-H5#&iHz-nv<888~ndAW9LqO zzTV8^_D4Kvf5hYVM?8MqF3|3cLM}m-KvGgN$;rtiB_)xNkRYBBbX7tENl8g0B_)w8 z>Q4fCJbCP$(aw{{LVVob&h_ifWbE7-Y^4F8iwkg<~DVvZa> z%$=6ow6?Txr=^9~mfL<>g}irtr&UR#ma_iO&F&DVL;XixphCd%jP%nS}%$ZuUckf>R zWdsP@m6=I>T^+yv^2-{2`Bhy18juTd?n9}st7BJY=3l?Q0by0gkFzH`n~U{7(A3yS zbK^Cd8XIY9x<*suHJTf*(cI+SHwtU7-gGT!-7MDlw5CRJ-$;G^5A4a#rt0|d4>RU{ zzudh$i?e6X(9m$1hK2?)UgnAz-%mrp`PFNo{_NQ^?9R#x`98U>F(9m}s*106?4Z1? zl#BIsp}Dv!{?)nqI?BsR`D(`ws;a8qYieC%zR%pQUF7HH^8Lw^TsU`*^XJZSA%OE< z&aaBA`2PEo>)Sj-Uwx*hz)78}0oTjFx zTFBQ_Qxl+j?5Ft1VJa)iIZ<_- z%8GJ|j~wPe!G8Ac$tEo|l`qrNDLs1hgAM&7V}Tq$c8qWG^GQ!jV{1wZpKadE)|3>| m)6)1RKcC~rj{R*jf&2%uE*fpfax@bF0000 FPGA are being reprogrammed." "STARTUP" & + +ssh -X hadaq@lxhadesdaq " + xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + cd ~/trbsoft/daq/main/ + ./startup.pl -f main_hades.script -o file -m TOF -m RPC -m WALL -m RICH -m SHOWER -m STARTCTS -m MDC -m MDCDATASET --eb off + echo "First config run" + bash startup_briccolage.sh + ' +" +notifyall.sh "DAQ" " FPGA have been programmed and DAQ is started." "STARTUP" & + diff --git a/control/gui/daq/20_Reprogram_FPGA.png b/control/gui/daq/20_Reprogram_FPGA.png new file mode 100644 index 0000000000000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YZtDN+Gk#i%EI=~p6lB@c?^0AaWG#5jmW>zS`M+Qbz3RfThBG?#9ULX8NSfk zMutwrDxq&P7A*DfX;;!{53Y|A1lY@$q|ye8z7$!kYG)W2nMcPAxeY*A{&b;vJ=I~m zfw1yio9H}AExEGLT+o3rz}t11y$&!RV-Di&U!%2 zRnzz|l!CDVkx8DPDe0h=`?^^41(&IGhqPK&wrGOM4ZA~(4kvae{Q}D}wJdz64YRh^ zCb~qP&FM3=$|RW#$9~+Y|Eiw)&11FD0)UNy8dAKqs-U=g>kwlSy+>D*fqaBEk!5>( z7t}Z<4YjQ=6z-#KVXVh3w8KO)TcW*QITXCFHl~N*BGw-YC3CC1%^uw}xpmkh%egNX zT#<7%&}0*_bf0CY|Hl3l+F<~7fC)rM&5Pmy2}$#~XGI#JKmNKa!o#WNU@+k?T)7<# literal 0 HcmV?d00001 diff --git a/control/gui/daq/30_Reboot_OEP b/control/gui/daq/30_Reboot_OEP new file mode 100755 index 0000000..f997de3 --- /dev/null +++ b/control/gui/daq/30_Reboot_OEP @@ -0,0 +1,9 @@ +#!/bin/bash +ssh -X hadaq@lxhadesdaq " +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' +~/bin/rebootoep_x11.sh +' +" + +notifyall.sh "DAQ" " OEPs rebooted" "MDC"& + diff --git a/control/gui/daq/30_Reboot_OEP.png b/control/gui/daq/30_Reboot_OEP.png new file mode 100644 index 0000000000000000000000000000000000000000..f013b429ff6300cc0082441fabf70e78e53f1c76 GIT binary patch literal 3383 zcmV-74ao9|P) z5Eu;#M=gr}D1tgJlGtqOq()wrl-O+?8I3JVu9a91>gm{)D3KB$l1Pfr-Mzba@0~l- zAG@S!ilmo9r1S$Wu(Nw+=KIc>bMDN&OG+usgw|Hlue`fvYu8ZSKL%276q3hvE=F`7 z{Jx>)!V}AzE*{^xQ-w1Qa2r5V1-$$;EtbF&P}oLVr0&II5An}_{>$3Bwd)~-z{QIf z@Yd1aq5I;&!uHi~KuW(03cut6-~QO+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&#ZJ^m&;IkK`5i~SiE@iQGjKe z6MZbxgkcy^rE*(b9uheT7G zSFOCes&amf6OYAUnI?2y!{|sJJHPN3U_{V$4X|y*<8crH5hpU*)^;KU@LFkL)!%pZ zKTn=gUsOPRT;$f;+LC7px?$i#XV0|GSiZbr!p<;F3=ED;{4T?A;976b&j5G;CX#pv zzyN^fIy*c6vZtr#Pihw|xO(y2Ikj-{Vit{881aZ>+j@;T#3?s2IOGiv4*G63D_z&s zIxcoNN~zxg*aM&!fZNyG6ZG}=90p(j0Oy=`JiO(*6^Y77E|-JGSnt`kW8a)ApbR^| z#Pu40yar4>NjOJDJpkH+AXwSm)z#G9)m3-==#d%#^8r+I&W$h(3jnSI=m*dT;0k~v z0L}yG08jv60>}ceP^=gfh9L$AuYdhFul{B?Ddk=1>3Iym$*BUS+VysKKR(G$0gwQ4 zrSXFs{;e{O(wmZ4>2gYBGyp* MDC-Hubs rebooted" "MDC"& + diff --git a/control/gui/daq/40_ReSync_Missing_OEP b/control/gui/daq/40_ReSync_Missing_OEP new file mode 100755 index 0000000..e264cbb --- /dev/null +++ b/control/gui/daq/40_ReSync_Missing_OEP @@ -0,0 +1,7 @@ +#!/bin/bash +ssh -X hadaq@lxhadesdaq " +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' +reviveoep.pl + ' + " + diff --git a/control/gui/daq/40_ReSync_Missing_OEP.png b/control/gui/daq/40_ReSync_Missing_OEP.png new file mode 100644 index 0000000000000000000000000000000000000000..95dc659c9c7a95e9549da3147d5f14ae13854ebf GIT binary patch literal 2146 zcmV-o2%YzdP)Px%{ZLF)MJ#JQON6ED}Kq7(fv%IwmPR zCpkAdB|#r4K_wMR3mi!k8A=%rPY*jlJR(pTD@`ObOfN%7Ksik}DODsTSsF}AP9a_% zC0`grQ$kEqNg!k!DPtTgVJIDG7%62XRZ~|nWF$sgLn&z*Ow(Hhm;CeJe14COmvAIDREdc1UAwU0!cp zXKQXUf+#$GG(&teJAf!^Y-u@xFK%mZN_s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BhjD9SEJ5xcNekCmM+hEF+anvq@_mQE~WWJ>uY$oYqKWAGY)KG{(S@^4q2 ze0}8&W^A5_vN4#{1!!0&VtxFXSr4j@hBr>1X#)UNH@Zp}AZnN0^!cE`<-DprZCyR3 z09`Oo*XZfT%YYm~oNoNo&oWfGt1o338~LFgKou(>3y?ZWSN5FdOm+65vkIsM^*Z`3 z3@0ktzRY8@P5e3IOR>pUnHv$`cV|fA3Wf6m$Y0y;wVjdB`OY&Je@+m8mi{q1k4Q{d zWWH%GLG*nvLHDY95X-t>*fB~TkPU!N76N zH)~tLk-Mq~HSd);1XKwZuGR8q+N456pkh@kIJWxoN9whl-s|+Z0Y6U_g2c{CCKUn> zad`bVi2;1Qe-9*jo7S9{>+v^gXN6>4SIMALuXVE>Sr5oJ`dD6BiUbfsFmJzomN3{>aD(@PnCRm0nO@E|;m)LRg;4!d=v(m`I1_&JO?b6Ni z-Zxi1{8aGUzm&UW*i;l1<55}XXgbt222X|$ep>tf+qFtb{I!h6*C?)A#o@(sEKM#6 zwPi6cCPO6819wA1mEUQ#7Q2FxwxKLX=0=KP)@MCvtIEC0QZl~3EZxCz0uad-; Y0&^n`i5yXrBme*a07*qoM6N<$g4iRw<^TWy literal 0 HcmV?d00001 diff --git a/control/gui/eb/10_Restart_EB b/control/gui/eb/10_Restart_EB new file mode 100755 index 0000000..46ba53d --- /dev/null +++ b/control/gui/eb/10_Restart_EB @@ -0,0 +1,14 @@ +#!/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 "Restarting Eventbuilder 1 - 16" + stoptrigger.sh + cd ~/trbsoft/daq/evtbuild/ + sleep 5 && starttrigger.sh & + ./start_eb_gbe.sh + ' + " +notifyall.sh "DAQ" " Eventbuilders have been restarted with last prefix" "EB" & + diff --git a/control/gui/eb/10_Restart_EB.png b/control/gui/eb/10_Restart_EB.png new file mode 100644 index 0000000000000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B%u-e#_r3CAy#fXZPWKK_fJ;5y*RaY+Cl&UvFyq{Hwn5 zp;Mr|xlq)KPufZs`1*!No=)Y{%T8TB{!l;<-tfG{036@Os-+wMv~$ys9yc@-v+YLA z31A3w%EK(f#J%gk`*0$YK+nkehYZcY4J&ZW@T7-^%H@adTle4t(LjZCe0z#bWz+$l zHV5&ckx(0(?)tt|;_}6juBV8I1pR;0t6~LaMngsOuRh)UnI{a*RKD_NwdtDA2d+N6 zwQkMcSfJ{?j=t0Tb55>B7vtv!*XMMGuOuuZcyV?8nxECi>Ru(ntQn^yfKG%ngQw># zD87ekhMZ^jZx-y4i zXV*Fr{7K(W* Eventbuilders are being stopped." "EB" & + +ssh -X hadaq@lxhadesdaq " + xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo "Stopping Eventbuilder 1 - 16" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e stop -n 1-16 + ' + " +notifyall.sh "DAQ" " Eventbuilders have been stopped" "EB" & diff --git a/control/gui/eb/20_____Stop_EB.png b/control/gui/eb/20_____Stop_EB.png new file mode 100644 index 0000000000000000000000000000000000000000..cd4fd0560fe02ee50e3ffc3a49ec1c77a3bd1f79 GIT binary patch literal 2246 zcmV;%2s!tOP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ^Oi4sRRCwCdnp!1#i__OADS zIeX5TOCMOsdNDqx!8VNa*U?^%_Wzr2zBx1VEm2D0R&Erxc)R5RwAwe)ADx`_nrIqI z<70>)Jp!K1fKm!V2&7p8gaGr`15#>MeEK$PX67@zkl(@!g(x_0la3t#0HW(fq8k&; z=R2?02i`ZDn%?!T>Np9?ET@oz0)Z9?KuQT=+0cVQgzvfs^e6ngr8zMAx;WJTdy@#6SLiK-jjI>iVTvR(o;-khXnAN(ealJO*C>+3SUKgOB$1 zbs$%?FgQF7n+s4zp-9Elb?Wjxlu=^y)o6q+4v?G}*B9_QO(B?JHhb9!pU;BSBPS|ri{u7HU|4pgHz ztkd6X=U*47Y)4jp(kKQ__~0tn9C0jzu;+%z%z)|-1oHr>_O7{JI>8eofW z{<0{e7>{S*5BNZ>Qp@n4{`li^DhYEYz5sws2FZcbE#vPT-W_QPVme)fE##HNTPisc zh$ZuAZV6)Q`0?*#&YfE$Y{wmddc8;u4elh|ZqhUj$-D_dD5S!YiV%WK!GZz-Q^KD( zb!rziJPXJHrL@GUQ;+!T>yRpzA=J|Le63Q2G6DfVW(EfycC50;6(Bu)zOR%@ZPYy; zMAwB-%5{IclmgS#iq17} zy90Ff4AzCiA92C2d!M^l;)27|)O0?we*FjTt5JYAe`>?8IKO%FfIA%F-gSqlVOXvJ zPPvS5Pw#%M&Y$K&LMSY+qyqJLi!J>de&JXPIF<0OXvE6({qeP1x4vpy*0T4$WtGu> z$L2S}J<$=S>+S%ah6ZRpANqDYxX%}f3_Fgqd_#wGcp4g~Ha_&F7kr@*>YJP00f@$+ zpwO_gHMiwk-+n?!sf3hE51)pNT<6&%haWS1 zz9o5R*`|p#TkibB1ACv|t9v|io(ElfEmTdZ6udqkw(Z*Wcs@0Q*ucPJnqgqE7J5o4 zaN9k?C4}G{gfY49-fiCnp%-IAgFhmK5X#sM+b<9R zQc5T(5$@`KdHsFcpVACN3dfn#({EPj7Br z?KQqpP9z?(3Wa_l1S6FqV0BeST`n_8S*Zyyc>Mk|b>Zee#{~b~{$uZtRTXe#O$p(u zKHycJYXK;LIsk#nRj-IuR0~A_P@OUQ+1_YRtD)cK6{1g-%k2=n0a6AkRi6ShJx@HI zNn6tfVz%?)(cue2CCd_+T_33plmOsVWCF+oFu79lS^x}yA3$T}YE%HUDu7v0r~)B# zTnEhcKSOTyzuWw809k5c U{fjKNmH+?%07*qoM6N<$f=w+OW&i*H literal 0 HcmV?d00001 diff --git a/control/gui/eb/29_Prefix_Be b/control/gui/eb/29_Prefix_Be new file mode 100755 index 0000000..17f11d1 --- /dev/null +++ b/control/gui/eb/29_Prefix_Be @@ -0,0 +1,15 @@ +#!/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 1 - 16 with file prefix be" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p be + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing beam files." "EB" & + + diff --git a/control/gui/eb/30_Prefix_NoFile b/control/gui/eb/30_Prefix_NoFile new file mode 100755 index 0000000..daa39ed --- /dev/null +++ b/control/gui/eb/30_Prefix_NoFile @@ -0,0 +1,13 @@ +#!/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 1 - 16, writing NO FILES" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d off -p '--' + ' +" +notifyall.sh "DAQ" " Eventbuilders have been started. NO FILES are being written" "EB" & + diff --git a/control/gui/eb/40_Prefix_Te b/control/gui/eb/40_Prefix_Te new file mode 100755 index 0000000..5bcefd2 --- /dev/null +++ b/control/gui/eb/40_Prefix_Te @@ -0,0 +1,13 @@ +#!/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 1 - 16 with prefix te" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing test files" "EB" & + diff --git a/control/gui/eb/50_Prefix_Co b/control/gui/eb/50_Prefix_Co new file mode 100755 index 0000000..eacd5c1 --- /dev/null +++ b/control/gui/eb/50_Prefix_Co @@ -0,0 +1,13 @@ +#!/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 1 - 16 with prefix co" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p co + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing Cosmics Files" "EB" & + diff --git a/control/gui/eb/70_Prefix_Ri b/control/gui/eb/70_Prefix_Ri new file mode 100755 index 0000000..2a974d8 --- /dev/null +++ b/control/gui/eb/70_Prefix_Ri @@ -0,0 +1,13 @@ +#!/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 1 - 16 with prefix ri" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p ri + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing RICH Files" "EB" & + diff --git a/control/gui/eb/80_Prefix_St b/control/gui/eb/80_Prefix_St new file mode 100755 index 0000000..8b05701 --- /dev/null +++ b/control/gui/eb/80_Prefix_St @@ -0,0 +1,11 @@ +#!/bin/bash + +ssh -X hadaq@lxhadesdaq " + xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo "Starting Eventbuilder 1 - 16 with prefix st" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p st + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing START Files" "EB"& + diff --git a/control/gui/eb/90_Prefix_Md b/control/gui/eb/90_Prefix_Md new file mode 100755 index 0000000..b933e23 --- /dev/null +++ b/control/gui/eb/90_Prefix_Md @@ -0,0 +1,11 @@ +#!/bin/bash + +ssh -X hadaq@lxhadesdaq " + xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo "Starting Eventbuilder 1 - 16 with prefix md" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -e restart -n 1-16 -d on -p md + ' + " +notifyall.sh "DAQ" " Eventbuilders have been started. Writing MDC Files" "EB"& + diff --git a/control/gui/expert/90_MDC_HighVoltageRamp b/control/gui/expert/90_MDC_HighVoltageRamp new file mode 100755 index 0000000..730b731 --- /dev/null +++ b/control/gui/expert/90_MDC_HighVoltageRamp @@ -0,0 +1,7 @@ +#!/bin/bash +export myvar=$(doyoureallywant.pl "to RAMP DOWN High Voltage!") +if [ $myvar == "256" ]; then exit; fi + +cd /home/hadaq/trbsoft/daq/control/mdcHVgui/ +/home/hadaq/trbsoft/daq/control/mdcHVgui/call_programs2.pl + diff --git a/control/gui/expert/CTS_Scope b/control/gui/expert/CTS_Scope new file mode 100755 index 0000000..d3101b2 --- /dev/null +++ b/control/gui/expert/CTS_Scope @@ -0,0 +1,3 @@ +#rdesktop hadvm04.gsi.de -g 1500x950 -k de -uscs -phadesctrl +rdesktop hadvm01.gsi.de -g 1500x950 -k de -uorcad -p6\$ectors + diff --git a/control/gui/expert/MDC_LV_Powercycle b/control/gui/expert/MDC_LV_Powercycle new file mode 100755 index 0000000..4893b3c --- /dev/null +++ b/control/gui/expert/MDC_LV_Powercycle @@ -0,0 +1,7 @@ +#!/bin/bash +export myvar=$(doyoureallywant.pl "to make a MDC powercycle? There will be no further warnings!") +if [ $myvar == "256" ]; then exit; fi + +cd /home/hadaq/trbsoft/daq/control/mdcLVgui/ +/home/hadaq/trbsoft/daq/control/mdcLVgui/call_programs2.pl + diff --git a/control/gui/expert/MDC_LV_Turn_On_ALL_Relais b/control/gui/expert/MDC_LV_Turn_On_ALL_Relais new file mode 100755 index 0000000..82f1517 --- /dev/null +++ b/control/gui/expert/MDC_LV_Turn_On_ALL_Relais @@ -0,0 +1,11 @@ +#!/bin/bash +xterm -e 'echo "Enabling the MDC-LV-Relais. Wait 4 Seconds..."; sleep 4' & +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 0'" +sleep 2 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 0'" +sleep 2 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 0'" + +xterm -e 'echo "Now you should have 157 A and 151 A +on the +3V and -3V rails of the MDC LV (EPICS LV, crates.adl). +Just close this window when you read and understood the message."; sleep 200' diff --git a/control/gui/expert/RICH_Powercycle b/control/gui/expert/RICH_Powercycle new file mode 100644 index 0000000..4441860 --- /dev/null +++ b/control/gui/expert/RICH_Powercycle @@ -0,0 +1,7 @@ +#!/bin/bash +export myvar=$(doyoureallywant.pl "to make a RICH powercycle?") +if [ $myvar == "256" ]; then exit; fi + +export DAQOPSERVER=hadesp31 +trbcmd w 0xfffb 0x20 0x8000 + diff --git a/control/gui/expert/RPC_special_PwrCyc b/control/gui/expert/RPC_special_PwrCyc new file mode 100755 index 0000000..99c76ef --- /dev/null +++ b/control/gui/expert/RPC_special_PwrCyc @@ -0,0 +1,13 @@ +#!/bin/bash +xterm -e " +export myvar=$(doyoureallywant.pl 'to do a power cycle on Wall') +if [ $myvar == '256' ]; then exit; fi + +echo 'Sending power cycle request' +wget -O /dev/null --http-password kaese --http-user admin -d http://haepcp15/RESET.CGI?a=0\&bi=5\&t=0\&b=1 +sleep 5 +echo 'waiting a minute until boards are rebooted' +sleep 60 +echo 'Done' +sleep 5 +" diff --git a/control/gui/expert/Reboot RICH b/control/gui/expert/Reboot RICH new file mode 100644 index 0000000..4441860 --- /dev/null +++ b/control/gui/expert/Reboot RICH @@ -0,0 +1,7 @@ +#!/bin/bash +export myvar=$(doyoureallywant.pl "to make a RICH powercycle?") +if [ $myvar == "256" ]; then exit; fi + +export DAQOPSERVER=hadesp31 +trbcmd w 0xfffb 0x20 0x8000 + diff --git a/control/gui/expert/Reload_RPC_Thresholds b/control/gui/expert/Reload_RPC_Thresholds new file mode 100755 index 0000000..65390de --- /dev/null +++ b/control/gui/expert/Reload_RPC_Thresholds @@ -0,0 +1,14 @@ +#!/bin/bash + + + +ssh -X lxhadesdaq " +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo Reloading RPC thresholds + cd /home/hadaq/rpc/utilities/ + ./setTriggerBoardSX.sh + ./setThresholdsAll.sh + sleep 5 +' +" +notifyall.sh "DAQ" " RPC-Thresholds have been reloaded." "RPC" & \ No newline at end of file diff --git a/control/gui/expert/Restart_EB_IOC b/control/gui/expert/Restart_EB_IOC new file mode 100755 index 0000000..c6879a5 --- /dev/null +++ b/control/gui/expert/Restart_EB_IOC @@ -0,0 +1,12 @@ +#!/bin/bash + +ssh -X hadaq@lxhadesdaq " + xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + echo "Starting Eventbuilder Control Interface" + cd ~/trbsoft/daq/evtbuild/ + ./start_eb_gbe.pl -i start -n 1-16 + ' + " +notifyall.sh "DAQ" " Eventbuilders IOC have been started." "EB" & + + diff --git a/control/gui/expert/Restart_Hmon b/control/gui/expert/Restart_Hmon new file mode 100755 index 0000000..3fad5b4 --- /dev/null +++ b/control/gui/expert/Restart_Hmon @@ -0,0 +1,15 @@ +#!/bin/bash + +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh -X hadaq@hadesp33 " + echo Re-starting Hmon + cd ~/trbsoft/daq/tools/hmon/ + ./stopall.sh + ./start.sh 1>/dev/null 2>/dev/null + echo "Hmon has been restartet" + sleep 5 + " + ' + + + diff --git a/control/gui/expert/Start_Speech_Output b/control/gui/expert/Start_Speech_Output new file mode 100755 index 0000000..9f8f29f --- /dev/null +++ b/control/gui/expert/Start_Speech_Output @@ -0,0 +1,5 @@ +#!/bin/bash +ssh hadaq@hades33 "killall -USR2 speakdaemon.pl" + + + diff --git a/control/gui/expert/Stop_Speech_Output b/control/gui/expert/Stop_Speech_Output new file mode 100755 index 0000000..b03ebef --- /dev/null +++ b/control/gui/expert/Stop_Speech_Output @@ -0,0 +1,6 @@ +#!/bin/bash +#ssh hadaq@hades33 "killall -USR1 speakdaemon.pl" + +ssh hadaq@hades33 "killall -USR1 speakdaemon.pl; pkill -f espeak" + + diff --git a/control/gui/expert/Wall_Powercycle b/control/gui/expert/Wall_Powercycle new file mode 100755 index 0000000..5ba00cb --- /dev/null +++ b/control/gui/expert/Wall_Powercycle @@ -0,0 +1,13 @@ +#!/bin/bash +xterm -e " +export myvar=$(doyoureallywant.pl 'to do a power cycle on Wall') +if [ $myvar == '256' ]; then exit; fi + +echo 'Sending power cycle request' +wget -O /dev/null --http-password kaese --http-user admin -d http://haepcp06/RESET.CGI?a=0\&bi=5\&t=0\&b=1 +sleep 5 +echo 'waiting a minute until boards are rebooted' +sleep 60 +echo 'Done' +sleep 5 +" diff --git a/control/gui/hades.gif b/control/gui/hades.gif new file mode 100644 index 0000000000000000000000000000000000000000..7e2c78f880f58de6bbff521f8455ae3d08b5ef62 GIT binary patch literal 1971 zcmc&z`B&3d7Jnj+ih@M}>oQo3gILraeU3Fik4V|UIcQ~zC1rgWAVox=g3d^gMN$L` zNWLsVKte=8Wr~_JK#NC^<*Aio3btheh9!(g2aeK4t#7X1e`4Mb-*eu(_kQkYNxXbK z_Xs1RQ3(1Cy*n5of)IxgMTqftj1j?z!-!(U_%bGl5X2Eg31WOV<`Cf!$05og#t&nP z2t^!4lp@AsVTK4p97B{L#zSKSNH7Y$P=wpNLontrrWiARG298k9Kn=e#`AzO;V{Qx z%3;RSf^I@FM=_0b5CN=#Ch!6xuo+eXHh{r2v_l;p;BbUcLKv?Q z7Q>z62;~Ul1p^N#bCgg@7_T2_K{v+;WrXo|fLmY>_yGohVvq=$Km@P`n!pQ)z-E93 zYyg94XoosHz@Z$+cq>66EQUL!9OIn@!N3E`lyQtV8e)MQz<6*PtOYN@Ja7x_0YAV1 zPz(}*G++U1pb5Ny2y6yuzy>gwhIXjK102R@23CSXSPXZ@M+o^t;E*sx3K>FZkP^fK zIe_utG*}B>f*rsThQSXo02G5nAPrc+8fXG9AOf2K8n6KjrlB3`@BoMZCH@~ic1F_$ z2>pb%zT5roKjFHBp{q;RdtbZIm9=D%tw?cg?Dn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Eo#XudB@lSZDXYFnXhGi-_4N~Qwn#~ESt7R(Y~m3@TBJe^+u;puuPJ3$9ipZi=p1SzOeAz+rLW=_6GTPQu*~m`_JvGF|?%FnkAa7 z*=3r``uenFkNm*JfzdT;r8!cyFEP+#eNSucM2Ak&rkPh)pPV}Gliv_yJKF-8wH8#4!`Yman=(AT0a*8b+@ykJAPShn+4xouHl_weBm zZGY*ojL#YtpO4@BiKn4pXwIA^;-vP=)aVp>_aufIGQ{?Ivi^t4VTt{`Dj={^@pVbc zv({3FEJ7Wuoa1ijt|`rSE$Xu?EsYDVJ1*S)=d`YHS|C{B?Ob2>V0-~X8+bN&DT literal 0 HcmV?d00001 diff --git a/control/gui/monitor/10_CTS_Mon b/control/gui/monitor/10_CTS_Mon new file mode 100755 index 0000000..710c250 --- /dev/null +++ b/control/gui/monitor/10_CTS_Mon @@ -0,0 +1,19 @@ +#!/bin/bash + +#export myvar=$(doyoureallywant.pl "to restart the DAQ") +#if [ $myvar == "256" ]; then exit; fi +#notifyall.sh "DAQ" " DAQ is going to be restarted." "STARTUP" & + +#xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' +# ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + export DAQOPSERVER=hadesp31 + cd /home/hadaq/trbsoft/daq/evtbuild + perl ./mon_cts.pl +# sleep 1 +#" +#' + +#sleep 1 +#notifyall.sh "DAQ" " DAQ has been started." "STARTUP" & + diff --git a/control/gui/monitor/10_CTS_Mon.png b/control/gui/monitor/10_CTS_Mon.png new file mode 100644 index 0000000000000000000000000000000000000000..996d431de804da567fc3daa961c34761bd8f9cea GIT binary patch literal 7154 zcmVgx9@8|s(!C(;nKfj^||3`Io zHGJ{K7iV=b;>C^a|V+crASDe=W;rY9*?`x<8~>%9uN5hm`vs$YWU>I zlVQe;83T)sJl3pP^Lws~CPrT##o^8#>O%&LH7bAj$l&-3rv$SLi>(<`*nWNJ-sr z!}asVe){1Wm^J#zIE zV8EHa#4_15u~_oZ(@!j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b/control/gui/monitor/20_Hmon @@ -0,0 +1,4 @@ +#!/bin/bash +#ssh -X hades30 " firefox -p Hmon http://hadesdaq02/mon" +MOZ_NO_REMOTE=1 firefox -p Hmon http://hades33/mon + diff --git a/control/gui/monitor/20_Hmon.png b/control/gui/monitor/20_Hmon.png new file mode 100644 index 0000000000000000000000000000000000000000..08cd1f8d83c84f845c0e6c21f3c91dca6248efe0 GIT binary patch literal 934 zcmW-fYe-Z<7=}M{ZMW6+lBJoZrb!nGjDZA0SZl9rZkrh)VU*C&MaocuGRR6&TaDC` zCe(@w%q$eTfEj3#7EKYBZfHE@=Z$Mzc!iV~I5*RSw@E+nKj7P1XvZNV;zWW-5-GiBj5s5~NHS77%s6pQ zf|KN=bT$*j1qne?kkZ9W5|<<-Nl8lgVv4vTp-3uHx-}zoLMd_)#BP3Z#sp)MF{KA% z&p8vENzRnkfiM?L2qpznS{AaoWI{42nbImz%oP)gNyU^F4HHlena~9xn2b^Ajb^Au zI^sCM5}ZrUm3D~1*bBj>;7S{Y4upl|QgWsJLl&}y;!<&?aex-^fCm7;F)YFpOh7ec zLKlQ!GFqcInxPu$h~ofD3ZXPgIK*J=r4&k&g<;ygSJH?IW&?LP|VN8`XxbnEw(MmAQ(_iNa&&pAfp%x(tWL3U|KU z_-R3WM7&|?$e$wAY;xQ33SGl*nqS2XrbgIzM!p!R&wP31R-&(`XXC24=BcIwi__kn z9y7*PZ8%gM%-+8Cg4dkC=XHq1TAiCV>fvX)(;qIGZu-2kckA*;h4p*V@{Z=3kC=+T zjNb>NMD6(8G0(`Be2ewNpDC-i z&GfW8eBW&K$oAC@R};GvM$7#dJ9dNy{D%GQKg;fAXKm?n`aF)0lR42dbu+_xnUe{> zgWsp$M7IY|Bn7Hw$J(NA1e#k-$vvXP@}y%br(*W_Nx!4EbLjnOV&mMU8H3-GJeHDl zdH=KYr&;SWBKk}_5C2>EYwl&rP_RF{r6RiWam)QnHKoR{$)>QFAwzFxN@Sm+ON_AWLq$*Y;rZ-n0J!xpaS5 literal 0 HcmV?d00001 diff --git a/control/gui/monitor/28_Epics b/control/gui/monitor/28_Epics new file mode 100755 index 0000000..688b615 --- /dev/null +++ b/control/gui/monitor/28_Epics @@ -0,0 +1,3 @@ +#!/bin/bash + +ssh -X -l scs hadesdaq02 '. /home/scs/.profile; medm -x hades.adl' diff --git a/control/gui/monitor/28_Epics.png b/control/gui/monitor/28_Epics.png new file mode 100644 index 0000000000000000000000000000000000000000..477b8dc3edd5e88179f32e72397e0491ca5252a2 GIT binary patch literal 630 zcmV-+0*U>JP)Px#Cs0gOMF0Q*000000RI6007*$zZEaPOlB%}0s$ z00001bW%=J06^y0W&i*H0b)x>L;#2d9Y_EG010qNS#tmY3ljhU3ljkVnw%H_000Mc zNliru+yWL3Dkc$PNeBP{0lP^=K~z}7?UlVw!!QuXuTnof^`sq$URD$lzyaEq}KhANJI*AxcE9C#s+UNTv=R5lX@JFhkmL3jc zWfiOJA;j}X<@q*2oGtAP1_{H)(r_mnKjhGl?F^1Ivru!7J2q*po5S>oX=uX$U`0bO zhY5&T83T;H1vfFarw%Yg&x# zOk`tV9a6!wc@w%IYmJt!)XssugsIbL7;mQ2PI+sgcS9bczMiE%X4p_CMWC1U=>+3c z3GIwH2WKkFqnhGZWsIn!zijqJh~k|=tcsUC*D2=RoNJc2b&Hwi#{F5C3t7m(lewog z^75gCVWH^<_X?kvF}&~eF`&Nl%u_Orz{zRro5i~bU~0C1=9nazqi>R99OIZ>F^Ag^ zq_AM-m>mCK>OV4tAHjD1%rRy67qhedGpD2z$$XJM9pf0s?1(wsesBQ#0qi%E7?O)@ Q_5c6?07*qoM6N<$f;{mMnE(I) literal 0 HcmV?d00001 diff --git a/control/gui/monitor/30_Epics_EB b/control/gui/monitor/30_Epics_EB new file mode 100755 index 0000000..5a0bd8d --- /dev/null +++ b/control/gui/monitor/30_Epics_EB @@ -0,0 +1,2 @@ +#!/bin/bash +ssh -X scs@hadesdaq02 'export EPICS_CA_ADDR_LIST=192.168.103.255; export EPICS_CA_AUTO_ADDR_LIST=NO; /home/scs/epics/extensions/bin/linux-x86/medm -x -macro "SUBSYSNUM=24" ~/operator/ebmainctrl.adl' diff --git a/control/gui/monitor/30_Epics_EB.png b/control/gui/monitor/30_Epics_EB.png new file mode 100644 index 0000000000000000000000000000000000000000..bc25fc1164290f35052fc2a2cec6f0203dd4dec9 GIT binary patch literal 223 zcmeAS@N?(olHy`uVBq!ia0vp^MnJ5FSZ>I(FH7M{nuY9O+ z@4w5vrF9aECK9G~;=J z@?;N*k8WUeEV-}8^zYQoi`smY9-Pi#J23J4#T9vMMx7@l7*DQK-|6n*q&@LzyOfFW zOqZ0N8S!iHxdpBBTkoef@yT=_xXN4@AbKOW4tai12+Q%LCpGkTBhK9<@61w1E1x${3zf= z=X6b13pzP{6}FT;f*^#5zSdQH&xez)lV+tz4u?zvVyv)O z=4-h@&rGRI-;&d--x*j4fA?${OeX|sVHS1L-kF+-c|VtkAFVFuc=@$7`85&AAc1`J zMn--&d1c*Mb^BY0s&nsjYtOOc-AqfT{w27F6$4{Q%Fo=$|wOUnmbrutZlEJMQsh~8eZ85^> z1H3)(n?IvUM|Bvfk?Fc;!4fwes~N|#E|JZcj=q}Z`sEc935n3o30D;0k0F>c;NUb@ z`{3shl&# zHKcEObB`Y$MQ0;-QqsPZizSbSW->jThM;&Ys+EgG2Y8zUoT+O_(D zvg`N4OO$KGVHw}22L}h~9!~RGIMLB1vJ6BYgRR6~(8Ly@V?J!31YGo<0( z!^o3S&V~2siCg}QKVC8?6lI*_G~R_&MU+r+f*f@1DD2(OP`C`Vp)uFDug7%_^&bs<9Q-Vi8LS zkMC{W*zjKjJ2WvNf>Kc^cCQ;6rhiu5^zifqFw~LGp>bw<8o4jly3?}y!L8nroOS6% zMTMrOCbg%hr-O737tB5ctItt+<07Vn!MXBxJO`*_J>;dWt!)jjx2`(9*xUP(UD$%K zBq>!7?eNC>12X#83hCW{OTIgQZDkb{ikq53@d5?9V7moji()^1{wyjlXJCobq^`*h z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~@VD>p?`L?(?nhTwSG#??9+TzCnxShH%a`FV4PiOrW0>ha z%8`caTUuI_RD1vT=CG=F)71)iY~rCc>o5p-KGwXY$o~d;EAM~S~r-O(O20NNl3?} zEjQ_$304-CV{rt7w$wzM@OT}=A>;LI3uooZ9!5pmHjFz4gYgY*q2!A^x+T-Q3I6@6 zp>cpYhz1A{VUNub!W9^Ur)Yh(bo76KSaQs)tZ}PEv)T~Cz}fXL^&Nx9cZ`KKpQ0}% zAg{@q|9fU`)mK3?uW!jUAIqSDH-VMMU^%t_wG ['int']; + + +sub groupBox_3 { + return shift->{groupBox_3}; +} + +sub hide_expert_checked { + my ( $state) = @_; + + if($state == Qt::Unchecked()) { + this->{self}->{groupBox_4}->hide(); + } + else { + this->{self}->{groupBox_4}->show(); + } +} + + +use Data::Dumper; + + + +# # make slots +my $str; +$str = "use QtCore4::slots\n slotQuitPressed => [], "; +foreach my $i (0..150) { + $str .= " slot". $i . "Pressed => [], "; +} +$str .= "slotdummyPressed => [];"; + +#print "will eval command: $str\n"; +eval $str; +#print "error: $@\n"; + + +# } + + + +sub NEW { + my ( $class, $mainWindow ) = @_; + $class->SUPER::NEW($mainWindow); + + my $self = bless {}, $class; + + this->{self} = $self; + + $self->{ra_buttons} = []; + + #print "self: "; print Dumper $self; + #print "this: "; print Dumper this; + + #my $self = $mainWindow; + if ( !defined $mainWindow->objectName() ) { + $mainWindow->setObjectName( "mainWindow" ); + } + #$mainWindow->resize( 800, 600 ); + #$mainWindow->resize( 400, 300 ); + + #$self->{hide_expert_checked} = hide_expert_checked; + + my $centralwidget = Qt::Widget( $mainWindow ); + $self->{centralwidget} = $centralwidget; + $centralwidget->setObjectName( "centralwidget" ); + + my $vl_mw = Qt::VBoxLayout( $centralwidget ); + +# my $layoutWidget = Qt::Widget( $centralwidget ); +# $self->{layoutWidget} = $layoutWidget; +# $layoutWidget->setObjectName( "layoutWidget" ); + #$layoutWidget->setGeometry( Qt::Rect(30, 110, 723, 418) ); +# my $horizontalLayout = Qt::HBoxLayout( $centralwidget ); + my $horizontalLayout = Qt::HBoxLayout( ); + $self->{horizontalLayout} = $horizontalLayout; + $horizontalLayout->setObjectName( "horizontalLayout" ); + $horizontalLayout->setContentsMargins(0, 0, 0, 0 ); + + #$horizontalLayout->addStretch(1); + + my $groupBox_1 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_1} = $groupBox_1; + $groupBox_1->setObjectName( "groupBox_1" ); + my $vl_gb1 = Qt::VBoxLayout( $groupBox_1 ); + $self->{vl_gb1} = $vl_gb1; + $vl_gb1->setObjectName( "vl_gb1" ); + + + + $horizontalLayout->addWidget( $groupBox_1 ); + + + my $groupBox_2 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_2} = $groupBox_2; + $groupBox_2->setObjectName( "groupBox_2" ); + 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_4 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_4} = $groupBox_4; + $groupBox_4->setObjectName( "groupBox_4" ); + my $vl_gb4 = Qt::VBoxLayout( $groupBox_4 ); + $self->{vl_gb4} = $vl_gb4; + $vl_gb4->setObjectName( "vl_gb4" ); + + $horizontalLayout->addWidget( $groupBox_4 ); + + my $groupBox_5 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_5} = $groupBox_5; + $groupBox_5->setObjectName( "groupBox_5" ); + my $vl_gb5 = Qt::VBoxLayout( $groupBox_5 ); + $self->{vl_gb5} = $vl_gb5; + $vl_gb5->setObjectName( "vl_gb5" ); + + $horizontalLayout->addWidget( $groupBox_5 ); + + 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_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 ); +# +# +# + my $vl_top = Qt::VBoxLayout( ); + $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); +# +# +# # my $pushButton = Qt::PushButton( $centralwidget ); +# # $self->{pushButton} = $pushButton; +# # $pushButton->setObjectName( "pushButton" ); +# +# # my $sizePolicy = Qt::SizePolicy( Qt::SizePolicy::Minimum(), Qt::SizePolicy::Fixed() ); +# # $self->{$sizePolicy} = $sizePolicy; +# # $sizePolicy->setHorizontalStretch( 0 ); +# # $sizePolicy->setVerticalStretch( 0 ); +# # $sizePolicy->setHeightForWidth( $pushButton->sizePolicy()->hasHeightForWidth() ); +# # $pushButton->setSizePolicy( $sizePolicy ); +# # $pushButton->setMinimumSize( Qt::Size(0, 0) ); +# # my $icon = Qt::Icon; +# # $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); +# # $icon->addPixmap(Qt::Pixmap("close_window.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); +# #$icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-system-login.png"), Qt::Icon::Normal(), Qt::Icon::On() ); +# # $pushButton->setIcon( $icon ); +# # $pushButton->setIconSize( Qt::Size(50, 50) ); +# +# # $vl_top->addWidget( $pushButton ); +# +# my $checkBox = Qt::CheckBox( $centralwidget ); +# $self->{checkBox} = $checkBox; +# $checkBox->setObjectName( "checkBox" ); +# +# $vl_top->addWidget( $checkBox ); + + $mainWindow->setCentralWidget( $centralwidget ); + my $menubar = Qt::MenuBar( $mainWindow ); + $self->{menubar} = $menubar; + $menubar->setObjectName( "menubar" ); + #$menubar->setGeometry( Qt::Rect(0, 0, 800, 25) ); + $mainWindow->setMenuBar( $menubar ); + my $statusbar = Qt::StatusBar( $mainWindow ); + $self->{statusbar} = $statusbar; + $statusbar->setObjectName( "statusbar" ); + $mainWindow->setStatusBar( $statusbar ); + + $self->retranslateUi( $mainWindow ); + + + my $cur_button_number = 0; + + my $dir; + my $buttons = []; + + + make_buttons($self, "S1", \$cur_button_number, $groupBox_1, $vl_gb1); + make_buttons($self, "S2", \$cur_button_number, $groupBox_2, $vl_gb2); + make_buttons($self, "S3", \$cur_button_number, $groupBox_3, $vl_gb3); + make_buttons($self, "S4", \$cur_button_number, $groupBox_4, $vl_gb4); + make_buttons($self, "S5", \$cur_button_number, $groupBox_5, $vl_gb5); + make_buttons($self, "S6", \$cur_button_number, $groupBox_6, $vl_gb6); + #print "cur_button: $cur_button_number\n"; + + #$layoutWidget->updateGeometry(); + + +# Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + + +# Qt::Object::connect($checkBox, SIGNAL 'stateChanged(int)' , +# this, SLOT 'hide_expert_checked(int)' ); + + Qt::MetaObject::connectSlotsByName( $mainWindow ); + + return $self; + +} + + +sub retranslateUi { + my ( $self, $mainWindow ) = @_; + $mainWindow->setWindowTitle( Qt::Application::translate( 'MainWindow', "MDC High Voltage Ramping", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_1}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 1", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 2", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 3", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 4", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 5", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_6}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 6", 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() ) ); + + +} # retranslateUi + + + + +sub make_buttons { + (my $self, my $dir, my $r_current_button_number, my $bgrp, my $layout) = @_; + + #print $bgrp; + #print "current number_; $r_current_button_number\n"; + + my $c = qq"find $dir -maxdepth 1 -type f| sort"; + my @f = qx($c); + + my $i = $$r_current_button_number; + + my $button_list=[]; + + foreach (@f) { + next if /.png$/i; + chomp; + s/.*\///; + next if /\~$/; + push @$button_list, $_; + my $br = $self->{ra_buttons}; + push @{$br}, $_; + } + + + + + foreach my $cur_button_name (@$button_list) { + + + next if ($cur_button_name =~ /.png$/); +# my $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); + my $icon_path = "$dir/$cur_button_name" . ".png"; +# print "path: $icon_path_file \n"; +# my $fh_icon; +# my $res = open($fh_icon, "<", $icon_path_file); +# my @file = <$fh_icon>; +# $fh_icon->close(); + + #/usr/share/icons/hicolor/48x48/apps/ +# my ($icon_name) = grep /Icon=/, @file; +# $icon_name =~ s/Icon=//; +# my $icon_path = "/usr/share/icons/hicolor/48x48/apps/$icon_name"; +# print "got icon path: $icon_path \n"; + + + my $name = $cur_button_name; + $name =~ s/^\d+_//; + $name =~ s/_/ /g; + + + my $com = qq| +my \$pb$i = Qt::PushButton("$cur_button_name", \$bgrp); +\$self->{pb$i} = \$pb$i; +\$layout->addWidget( \$pb$i ); +\$pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, + Qt::Application::UnicodeUTF8() ) ); + +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) ); + +|; + + +# my $pb_$i = Qt::PushButton("$_", \$bgrp); +# $self->{pb$i} = $pb_$i; +# $layout->addWidget( $pb_$i ); +# $pushButton->setIcon( $icon ); +# $pushButton->setIconSize( Qt::Size(50, 50) ); +# $pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, Qt::Application::UnicodeUTF8() ) ); + + +#/usr/share/icons/hicolor/48x48/apps/yast-bootloader.png + + # print "command1: $com\n"; + + #print "command: $com\n"; + eval $com; + print "$@\n" if ($@); + + +#my $iconstr = "$icon" . "$i"; + +$com = qq | +|; + + + + #Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + $com = qq|Qt::Object::connect(\$self->{pb$i}, SIGNAL 'clicked()', this, SLOT 'slot| . $i . qq|Pressed()');|; + #print "command2: $com\n"; + eval $com; + print "error: " , $@ , "\n" if ($@); + + make_subroutine($i, $dir); + + $i++; + #last if $i >=10; + } + + $$r_current_button_number = $i; +} + + +sub make_subroutine { + (my $i, my $dir) = @_; + # make subroutines + #sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + my $str = qq|sub slot| . $i . qq|Pressed { my \$c = this->{self}->{ra_buttons}->[$i]; \$c = "cd $dir; ./\$c &"; print "will execute: \$c\n"; system(\$c); }|; +# my $str = qq|sub slot| . $i . qq|Pressed { print "$i pressed\n"; }|; +#system(\$c); }|; + #print "sub: $str\n"; + eval $str; +} + + +# sub slotQuitPressed { +# exit; +# } + +#sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + +1; diff --git a/control/mdcHVgui/S1/Plane_1 b/control/mdcHVgui/S1/Plane_1 new file mode 100755 index 0000000..f9933bf --- /dev/null +++ b/control/mdcHVgui/S1/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 1 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S1/Plane_2 b/control/mdcHVgui/S1/Plane_2 new file mode 100755 index 0000000..987f338 --- /dev/null +++ b/control/mdcHVgui/S1/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 1 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S1/Plane_3 b/control/mdcHVgui/S1/Plane_3 new file mode 100755 index 0000000..4b87a31 --- /dev/null +++ b/control/mdcHVgui/S1/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 1 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S1/Plane_4 b/control/mdcHVgui/S1/Plane_4 new file mode 100755 index 0000000..ff61089 --- /dev/null +++ b/control/mdcHVgui/S1/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 1 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S2/Plane_1 b/control/mdcHVgui/S2/Plane_1 new file mode 100755 index 0000000..fba21e0 --- /dev/null +++ b/control/mdcHVgui/S2/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 2 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S2/Plane_2 b/control/mdcHVgui/S2/Plane_2 new file mode 100755 index 0000000..b9a8d22 --- /dev/null +++ b/control/mdcHVgui/S2/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 2 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S2/Plane_3 b/control/mdcHVgui/S2/Plane_3 new file mode 100755 index 0000000..9b68358 --- /dev/null +++ b/control/mdcHVgui/S2/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 2 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S2/Plane_4 b/control/mdcHVgui/S2/Plane_4 new file mode 100755 index 0000000..b6c1cbd --- /dev/null +++ b/control/mdcHVgui/S2/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 2 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S3/Plane_1 b/control/mdcHVgui/S3/Plane_1 new file mode 100755 index 0000000..d3a8876 --- /dev/null +++ b/control/mdcHVgui/S3/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 3 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S3/Plane_2 b/control/mdcHVgui/S3/Plane_2 new file mode 100755 index 0000000..b282f91 --- /dev/null +++ b/control/mdcHVgui/S3/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 3 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S3/Plane_3 b/control/mdcHVgui/S3/Plane_3 new file mode 100755 index 0000000..f7b96ef --- /dev/null +++ b/control/mdcHVgui/S3/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 3 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S3/Plane_4 b/control/mdcHVgui/S3/Plane_4 new file mode 100755 index 0000000..2148e5e --- /dev/null +++ b/control/mdcHVgui/S3/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 3 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S4/Plane_1 b/control/mdcHVgui/S4/Plane_1 new file mode 100755 index 0000000..1a89d0f --- /dev/null +++ b/control/mdcHVgui/S4/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 4 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S4/Plane_2 b/control/mdcHVgui/S4/Plane_2 new file mode 100755 index 0000000..dd7e0a4 --- /dev/null +++ b/control/mdcHVgui/S4/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 4 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S4/Plane_3 b/control/mdcHVgui/S4/Plane_3 new file mode 100755 index 0000000..c71eef6 --- /dev/null +++ b/control/mdcHVgui/S4/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 4 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S4/Plane_4 b/control/mdcHVgui/S4/Plane_4 new file mode 100755 index 0000000..ff91576 --- /dev/null +++ b/control/mdcHVgui/S4/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 4 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S5/Plane_1 b/control/mdcHVgui/S5/Plane_1 new file mode 100755 index 0000000..c11bd40 --- /dev/null +++ b/control/mdcHVgui/S5/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 5 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S5/Plane_2 b/control/mdcHVgui/S5/Plane_2 new file mode 100755 index 0000000..34caeb5 --- /dev/null +++ b/control/mdcHVgui/S5/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 5 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S5/Plane_3 b/control/mdcHVgui/S5/Plane_3 new file mode 100755 index 0000000..195d1c5 --- /dev/null +++ b/control/mdcHVgui/S5/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 5 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S5/Plane_4 b/control/mdcHVgui/S5/Plane_4 new file mode 100755 index 0000000..6afbb24 --- /dev/null +++ b/control/mdcHVgui/S5/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 5 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S6/Plane_1 b/control/mdcHVgui/S6/Plane_1 new file mode 100755 index 0000000..f444d4c --- /dev/null +++ b/control/mdcHVgui/S6/Plane_1 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 1 6 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S6/Plane_2 b/control/mdcHVgui/S6/Plane_2 new file mode 100755 index 0000000..e95cc9e --- /dev/null +++ b/control/mdcHVgui/S6/Plane_2 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 2 6 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S6/Plane_3 b/control/mdcHVgui/S6/Plane_3 new file mode 100755 index 0000000..4873ff0 --- /dev/null +++ b/control/mdcHVgui/S6/Plane_3 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 3 6 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/S6/Plane_4 b/control/mdcHVgui/S6/Plane_4 new file mode 100755 index 0000000..a1d3f6b --- /dev/null +++ b/control/mdcHVgui/S6/Plane_4 @@ -0,0 +1,16 @@ +#!/bin/bash + +export myvar=$(doyoureallywant.pl "to do a HV ramping cycle") +if [ $myvar == "256" ]; then exit; fi + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh -X hadaq@hadesdaq02 " + source /home/hadaq/.bashrc + echo \" Connected to hadesdaq02...\" + cd /home/hadaq/trbsoft/mdc/ + ./mdc_ramping.pl 4 6 + sleep 5 +" +' + + diff --git a/control/mdcHVgui/call_programs2.pl b/control/mdcHVgui/call_programs2.pl new file mode 100755 index 0000000..360b8c8 --- /dev/null +++ b/control/mdcHVgui/call_programs2.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +package main; + +use warnings; +use strict; +use QtCore4; +use QtGui4; +use Buttons2; + +sub main { + + my $a = Qt::Application(\@ARGV); + my $w = Qt::MainWindow; + my $u = Buttons2($w); + $w->show(); + exit $a->exec(); +} + + +main(); + diff --git a/control/mdcLVgui/Buttons2.pm b/control/mdcLVgui/Buttons2.pm new file mode 100755 index 0000000..9bd65f0 --- /dev/null +++ b/control/mdcLVgui/Buttons2.pm @@ -0,0 +1,399 @@ +package Buttons2; + +use strict; +use warnings; + +use QtCore4 ; +use QtGui4; + +use Data::Dumper; +use QtCore4::debug qw(ambiguous); + + +#use Qt::isa qw(Qt::Widget); +#use QtCore4::isa qw(Qt::Widget); +#use QtCore4; + +use QtCore4::isa qw( Qt::Widget ); + +use QtCore4::slots + hide_expert_checked => ['int']; + + +sub groupBox_3 { + return shift->{groupBox_3}; +} + +sub hide_expert_checked { + my ( $state) = @_; + + if($state == Qt::Unchecked()) { + this->{self}->{groupBox_4}->hide(); + } + else { + this->{self}->{groupBox_4}->show(); + } +} + + +use Data::Dumper; + + + +# # make slots +my $str; +$str = "use QtCore4::slots\n slotQuitPressed => [], "; +foreach my $i (0..150) { + $str .= " slot". $i . "Pressed => [], "; +} +$str .= "slotdummyPressed => [];"; + +#print "will eval command: $str\n"; +eval $str; +#print "error: $@\n"; + + +# } + + + +sub NEW { + my ( $class, $mainWindow ) = @_; + $class->SUPER::NEW($mainWindow); + + my $self = bless {}, $class; + + this->{self} = $self; + + $self->{ra_buttons} = []; + + #print "self: "; print Dumper $self; + #print "this: "; print Dumper this; + + #my $self = $mainWindow; + if ( !defined $mainWindow->objectName() ) { + $mainWindow->setObjectName( "mainWindow" ); + } + #$mainWindow->resize( 800, 600 ); + #$mainWindow->resize( 400, 300 ); + + #$self->{hide_expert_checked} = hide_expert_checked; + + my $centralwidget = Qt::Widget( $mainWindow ); + $self->{centralwidget} = $centralwidget; + $centralwidget->setObjectName( "centralwidget" ); + + my $vl_mw = Qt::VBoxLayout( $centralwidget ); + +# my $layoutWidget = Qt::Widget( $centralwidget ); +# $self->{layoutWidget} = $layoutWidget; +# $layoutWidget->setObjectName( "layoutWidget" ); + #$layoutWidget->setGeometry( Qt::Rect(30, 110, 723, 418) ); +# my $horizontalLayout = Qt::HBoxLayout( $centralwidget ); + my $horizontalLayout = Qt::HBoxLayout( ); + $self->{horizontalLayout} = $horizontalLayout; + $horizontalLayout->setObjectName( "horizontalLayout" ); + $horizontalLayout->setContentsMargins(0, 0, 0, 0 ); + + #$horizontalLayout->addStretch(1); + + my $groupBox_1 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_1} = $groupBox_1; + $groupBox_1->setObjectName( "groupBox_1" ); + my $vl_gb1 = Qt::VBoxLayout( $groupBox_1 ); + $self->{vl_gb1} = $vl_gb1; + $vl_gb1->setObjectName( "vl_gb1" ); + + + + $horizontalLayout->addWidget( $groupBox_1 ); + + + my $groupBox_2 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_2} = $groupBox_2; + $groupBox_2->setObjectName( "groupBox_2" ); + 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_4 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_4} = $groupBox_4; + $groupBox_4->setObjectName( "groupBox_4" ); + my $vl_gb4 = Qt::VBoxLayout( $groupBox_4 ); + $self->{vl_gb4} = $vl_gb4; + $vl_gb4->setObjectName( "vl_gb4" ); + + $horizontalLayout->addWidget( $groupBox_4 ); + + my $groupBox_5 = Qt::GroupBox( $centralwidget ); + $self->{groupBox_5} = $groupBox_5; + $groupBox_5->setObjectName( "groupBox_5" ); + my $vl_gb5 = Qt::VBoxLayout( $groupBox_5 ); + $self->{vl_gb5} = $vl_gb5; + $vl_gb5->setObjectName( "vl_gb5" ); + + $horizontalLayout->addWidget( $groupBox_5 ); + + 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_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 ); +# +# +# + my $vl_top = Qt::VBoxLayout( ); + $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); +# +# +# # my $pushButton = Qt::PushButton( $centralwidget ); +# # $self->{pushButton} = $pushButton; +# # $pushButton->setObjectName( "pushButton" ); +# +# # my $sizePolicy = Qt::SizePolicy( Qt::SizePolicy::Minimum(), Qt::SizePolicy::Fixed() ); +# # $self->{$sizePolicy} = $sizePolicy; +# # $sizePolicy->setHorizontalStretch( 0 ); +# # $sizePolicy->setVerticalStretch( 0 ); +# # $sizePolicy->setHeightForWidth( $pushButton->sizePolicy()->hasHeightForWidth() ); +# # $pushButton->setSizePolicy( $sizePolicy ); +# # $pushButton->setMinimumSize( Qt::Size(0, 0) ); +# # my $icon = Qt::Icon; +# # $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); +# # $icon->addPixmap(Qt::Pixmap("close_window.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); +# #$icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-system-login.png"), Qt::Icon::Normal(), Qt::Icon::On() ); +# # $pushButton->setIcon( $icon ); +# # $pushButton->setIconSize( Qt::Size(50, 50) ); +# +# # $vl_top->addWidget( $pushButton ); +# +# my $checkBox = Qt::CheckBox( $centralwidget ); +# $self->{checkBox} = $checkBox; +# $checkBox->setObjectName( "checkBox" ); +# +# $vl_top->addWidget( $checkBox ); + + $mainWindow->setCentralWidget( $centralwidget ); + my $menubar = Qt::MenuBar( $mainWindow ); + $self->{menubar} = $menubar; + $menubar->setObjectName( "menubar" ); + #$menubar->setGeometry( Qt::Rect(0, 0, 800, 25) ); + $mainWindow->setMenuBar( $menubar ); + my $statusbar = Qt::StatusBar( $mainWindow ); + $self->{statusbar} = $statusbar; + $statusbar->setObjectName( "statusbar" ); + $mainWindow->setStatusBar( $statusbar ); + + $self->retranslateUi( $mainWindow ); + + + my $cur_button_number = 0; + + my $dir; + my $buttons = []; + + + make_buttons($self, "S0", \$cur_button_number, $groupBox_1, $vl_gb1); + make_buttons($self, "S1", \$cur_button_number, $groupBox_2, $vl_gb2); + make_buttons($self, "S2", \$cur_button_number, $groupBox_3, $vl_gb3); + make_buttons($self, "S3", \$cur_button_number, $groupBox_4, $vl_gb4); + make_buttons($self, "S4", \$cur_button_number, $groupBox_5, $vl_gb5); + make_buttons($self, "S5", \$cur_button_number, $groupBox_6, $vl_gb6); + #print "cur_button: $cur_button_number\n"; + + #$layoutWidget->updateGeometry(); + + +# Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + + +# Qt::Object::connect($checkBox, SIGNAL 'stateChanged(int)' , +# this, SLOT 'hide_expert_checked(int)' ); + + Qt::MetaObject::connectSlotsByName( $mainWindow ); + + return $self; + +} + + +sub retranslateUi { + my ( $self, $mainWindow ) = @_; + $mainWindow->setWindowTitle( Qt::Application::translate( 'MainWindow', "MDC LV Powercycle", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_1}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 0", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 1", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 2", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 3", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 4", undef, Qt::Application::UnicodeUTF8() ) ); + $self->{groupBox_6}->setTitle( Qt::Application::translate( 'MainWindow', "Sector 5", 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() ) ); + + +} # retranslateUi + + + + +sub make_buttons { + (my $self, my $dir, my $r_current_button_number, my $bgrp, my $layout) = @_; + + #print $bgrp; + #print "current number_; $r_current_button_number\n"; + + my $c = qq"find $dir -maxdepth 1 -type f| sort"; + my @f = qx($c); + + my $i = $$r_current_button_number; + + my $button_list=[]; + + foreach (@f) { + next if /.png$/i; + chomp; + s/.*\///; + next if /\~$/; + push @$button_list, $_; + my $br = $self->{ra_buttons}; + push @{$br}, $_; + } + + + + + foreach my $cur_button_name (@$button_list) { + + + next if ($cur_button_name =~ /.png$/); +# my $icon->addPixmap(Qt::Pixmap("/usr/share/icons/oxygen/64x64/apps/preferences-desktop-icons.png"), Qt::Icon::Normal(), Qt::Icon::Off() ); + my $icon_path = "$dir/$cur_button_name" . ".png"; +# print "path: $icon_path_file \n"; +# my $fh_icon; +# my $res = open($fh_icon, "<", $icon_path_file); +# my @file = <$fh_icon>; +# $fh_icon->close(); + + #/usr/share/icons/hicolor/48x48/apps/ +# my ($icon_name) = grep /Icon=/, @file; +# $icon_name =~ s/Icon=//; +# my $icon_path = "/usr/share/icons/hicolor/48x48/apps/$icon_name"; +# print "got icon path: $icon_path \n"; + + + my $name = $cur_button_name; + $name =~ s/^\d+_//; + $name =~ s/_/ /g; + + + my $com = qq| +my \$pb$i = Qt::PushButton("$cur_button_name", \$bgrp); +\$self->{pb$i} = \$pb$i; +\$layout->addWidget( \$pb$i ); +\$pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, + Qt::Application::UnicodeUTF8() ) ); + +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) ); + +|; + + +# my $pb_$i = Qt::PushButton("$_", \$bgrp); +# $self->{pb$i} = $pb_$i; +# $layout->addWidget( $pb_$i ); +# $pushButton->setIcon( $icon ); +# $pushButton->setIconSize( Qt::Size(50, 50) ); +# $pb$i->setText ( Qt::Application::translate( 'MainWindow', "$name", undef, Qt::Application::UnicodeUTF8() ) ); + + +#/usr/share/icons/hicolor/48x48/apps/yast-bootloader.png + + # print "command1: $com\n"; + + #print "command: $com\n"; + eval $com; + print "$@\n" if ($@); + + +#my $iconstr = "$icon" . "$i"; + +$com = qq | +|; + + + + #Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' ); + $com = qq|Qt::Object::connect(\$self->{pb$i}, SIGNAL 'clicked()', this, SLOT 'slot| . $i . qq|Pressed()');|; + #print "command2: $com\n"; + eval $com; + print "error: " , $@ , "\n" if ($@); + + make_subroutine($i, $dir); + + $i++; + #last if $i >=10; + } + + $$r_current_button_number = $i; +} + + +sub make_subroutine { + (my $i, my $dir) = @_; + # make subroutines + #sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + my $str = qq|sub slot| . $i . qq|Pressed { my \$c = this->{self}->{ra_buttons}->[$i]; \$c = "cd $dir; ./\$c &"; print "will execute: \$c\n"; system('logger -p local1.info -t DAQ MdcLV \\ Powercycle in '.$dir.'/'.this->{self}->{ra_buttons}->[$i]); system(\$c); }|; +# my $str = qq|sub slot| . $i . qq|Pressed { print "$i pressed\n"; }|; +#system(\$c); }|; + #print "sub: $str\n"; + eval $str; +} + + +# sub slotQuitPressed { +# exit; +# } + +#sub slot0Pressed { my $c = buttons->[0]; $c = "cd ../control; ./$c"; print "will execute: $c\n"; qx($c); } + + +1; diff --git a/control/mdcLVgui/S0/200x b/control/mdcLVgui/S0/200x new file mode 100755 index 0000000..5804121 --- /dev/null +++ b/control/mdcLVgui/S0/200x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S0/210x b/control/mdcLVgui/S0/210x new file mode 100755 index 0000000..46f2eb7 --- /dev/null +++ b/control/mdcLVgui/S0/210x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" diff --git a/control/mdcLVgui/S0/220x b/control/mdcLVgui/S0/220x new file mode 100755 index 0000000..422f613 --- /dev/null +++ b/control/mdcLVgui/S0/220x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" + diff --git a/control/mdcLVgui/S0/230x b/control/mdcLVgui/S0/230x new file mode 100755 index 0000000..3400905 --- /dev/null +++ b/control/mdcLVgui/S0/230x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" + + diff --git a/control/mdcLVgui/S0/Plane_0 b/control/mdcLVgui/S0/Plane_0 new file mode 100755 index 0000000..5804121 --- /dev/null +++ b/control/mdcLVgui/S0/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S0/Plane_1 b/control/mdcLVgui/S0/Plane_1 new file mode 100755 index 0000000..46f2eb7 --- /dev/null +++ b/control/mdcLVgui/S0/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" diff --git a/control/mdcLVgui/S0/Plane_2 b/control/mdcLVgui/S0/Plane_2 new file mode 100755 index 0000000..422f613 --- /dev/null +++ b/control/mdcLVgui/S0/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" + diff --git a/control/mdcLVgui/S0/Plane_3 b/control/mdcLVgui/S0/Plane_3 new file mode 100755 index 0000000..3400905 --- /dev/null +++ b/control/mdcLVgui/S0/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" + + diff --git a/control/mdcLVgui/S1/201x b/control/mdcLVgui/S1/201x new file mode 100755 index 0000000..3799388 --- /dev/null +++ b/control/mdcLVgui/S1/201x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S1/211x b/control/mdcLVgui/S1/211x new file mode 100755 index 0000000..ee55a3c --- /dev/null +++ b/control/mdcLVgui/S1/211x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" diff --git a/control/mdcLVgui/S1/221x b/control/mdcLVgui/S1/221x new file mode 100755 index 0000000..b81ec71 --- /dev/null +++ b/control/mdcLVgui/S1/221x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" + diff --git a/control/mdcLVgui/S1/231x b/control/mdcLVgui/S1/231x new file mode 100755 index 0000000..6d24b1e --- /dev/null +++ b/control/mdcLVgui/S1/231x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" + + diff --git a/control/mdcLVgui/S1/Plane_0 b/control/mdcLVgui/S1/Plane_0 new file mode 100755 index 0000000..3799388 --- /dev/null +++ b/control/mdcLVgui/S1/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S1/Plane_1 b/control/mdcLVgui/S1/Plane_1 new file mode 100755 index 0000000..ee55a3c --- /dev/null +++ b/control/mdcLVgui/S1/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" diff --git a/control/mdcLVgui/S1/Plane_2 b/control/mdcLVgui/S1/Plane_2 new file mode 100755 index 0000000..b81ec71 --- /dev/null +++ b/control/mdcLVgui/S1/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" + diff --git a/control/mdcLVgui/S1/Plane_3 b/control/mdcLVgui/S1/Plane_3 new file mode 100755 index 0000000..6d24b1e --- /dev/null +++ b/control/mdcLVgui/S1/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" + + diff --git a/control/mdcLVgui/S2/202x b/control/mdcLVgui/S2/202x new file mode 100755 index 0000000..387e6c1 --- /dev/null +++ b/control/mdcLVgui/S2/202x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S2/212x b/control/mdcLVgui/S2/212x new file mode 100755 index 0000000..a4896e3 --- /dev/null +++ b/control/mdcLVgui/S2/212x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" diff --git a/control/mdcLVgui/S2/222x b/control/mdcLVgui/S2/222x new file mode 100755 index 0000000..f0affe5 --- /dev/null +++ b/control/mdcLVgui/S2/222x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" + diff --git a/control/mdcLVgui/S2/232x b/control/mdcLVgui/S2/232x new file mode 100755 index 0000000..ce0233f --- /dev/null +++ b/control/mdcLVgui/S2/232x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" + + diff --git a/control/mdcLVgui/S2/Plane_0 b/control/mdcLVgui/S2/Plane_0 new file mode 100755 index 0000000..387e6c1 --- /dev/null +++ b/control/mdcLVgui/S2/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S2/Plane_1 b/control/mdcLVgui/S2/Plane_1 new file mode 100755 index 0000000..a4896e3 --- /dev/null +++ b/control/mdcLVgui/S2/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" diff --git a/control/mdcLVgui/S2/Plane_2 b/control/mdcLVgui/S2/Plane_2 new file mode 100755 index 0000000..f0affe5 --- /dev/null +++ b/control/mdcLVgui/S2/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" + diff --git a/control/mdcLVgui/S2/Plane_3 b/control/mdcLVgui/S2/Plane_3 new file mode 100755 index 0000000..ce0233f --- /dev/null +++ b/control/mdcLVgui/S2/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" + + diff --git a/control/mdcLVgui/S3/203x b/control/mdcLVgui/S3/203x new file mode 100755 index 0000000..f4ad3fb --- /dev/null +++ b/control/mdcLVgui/S3/203x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S3/213x b/control/mdcLVgui/S3/213x new file mode 100755 index 0000000..8959932 --- /dev/null +++ b/control/mdcLVgui/S3/213x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" diff --git a/control/mdcLVgui/S3/223x b/control/mdcLVgui/S3/223x new file mode 100755 index 0000000..bdeb03c --- /dev/null +++ b/control/mdcLVgui/S3/223x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" + diff --git a/control/mdcLVgui/S3/233x b/control/mdcLVgui/S3/233x new file mode 100755 index 0000000..cbdca2a --- /dev/null +++ b/control/mdcLVgui/S3/233x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" + + diff --git a/control/mdcLVgui/S3/Plane_0 b/control/mdcLVgui/S3/Plane_0 new file mode 100755 index 0000000..f4ad3fb --- /dev/null +++ b/control/mdcLVgui/S3/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S3/Plane_1 b/control/mdcLVgui/S3/Plane_1 new file mode 100755 index 0000000..8959932 --- /dev/null +++ b/control/mdcLVgui/S3/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" diff --git a/control/mdcLVgui/S3/Plane_2 b/control/mdcLVgui/S3/Plane_2 new file mode 100755 index 0000000..bdeb03c --- /dev/null +++ b/control/mdcLVgui/S3/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" + diff --git a/control/mdcLVgui/S3/Plane_3 b/control/mdcLVgui/S3/Plane_3 new file mode 100755 index 0000000..cbdca2a --- /dev/null +++ b/control/mdcLVgui/S3/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" + + diff --git a/control/mdcLVgui/S4/204x b/control/mdcLVgui/S4/204x new file mode 100755 index 0000000..b2342bf --- /dev/null +++ b/control/mdcLVgui/S4/204x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S4/214x b/control/mdcLVgui/S4/214x new file mode 100755 index 0000000..912ebf7 --- /dev/null +++ b/control/mdcLVgui/S4/214x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" diff --git a/control/mdcLVgui/S4/224x b/control/mdcLVgui/S4/224x new file mode 100755 index 0000000..a0d620b --- /dev/null +++ b/control/mdcLVgui/S4/224x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" + diff --git a/control/mdcLVgui/S4/234x b/control/mdcLVgui/S4/234x new file mode 100755 index 0000000..06b44fc --- /dev/null +++ b/control/mdcLVgui/S4/234x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" + + diff --git a/control/mdcLVgui/S4/Plane_0 b/control/mdcLVgui/S4/Plane_0 new file mode 100755 index 0000000..b2342bf --- /dev/null +++ b/control/mdcLVgui/S4/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S4/Plane_1 b/control/mdcLVgui/S4/Plane_1 new file mode 100755 index 0000000..912ebf7 --- /dev/null +++ b/control/mdcLVgui/S4/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" diff --git a/control/mdcLVgui/S4/Plane_2 b/control/mdcLVgui/S4/Plane_2 new file mode 100755 index 0000000..a0d620b --- /dev/null +++ b/control/mdcLVgui/S4/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" + diff --git a/control/mdcLVgui/S4/Plane_3 b/control/mdcLVgui/S4/Plane_3 new file mode 100755 index 0000000..06b44fc --- /dev/null +++ b/control/mdcLVgui/S4/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 1'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" + + diff --git a/control/mdcLVgui/S5/205x b/control/mdcLVgui/S5/205x new file mode 100755 index 0000000..f1b9351 --- /dev/null +++ b/control/mdcLVgui/S5/205x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S5/215x b/control/mdcLVgui/S5/215x new file mode 100755 index 0000000..79e7b67 --- /dev/null +++ b/control/mdcLVgui/S5/215x @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" diff --git a/control/mdcLVgui/S5/225x b/control/mdcLVgui/S5/225x new file mode 100755 index 0000000..25b042f --- /dev/null +++ b/control/mdcLVgui/S5/225x @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" + diff --git a/control/mdcLVgui/S5/235x b/control/mdcLVgui/S5/235x new file mode 100755 index 0000000..42783d3 --- /dev/null +++ b/control/mdcLVgui/S5/235x @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" + + diff --git a/control/mdcLVgui/S5/Plane_0 b/control/mdcLVgui/S5/Plane_0 new file mode 100755 index 0000000..f1b9351 --- /dev/null +++ b/control/mdcLVgui/S5/Plane_0 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file diff --git a/control/mdcLVgui/S5/Plane_1 b/control/mdcLVgui/S5/Plane_1 new file mode 100755 index 0000000..79e7b67 --- /dev/null +++ b/control/mdcLVgui/S5/Plane_1 @@ -0,0 +1,4 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" diff --git a/control/mdcLVgui/S5/Plane_2 b/control/mdcLVgui/S5/Plane_2 new file mode 100755 index 0000000..25b042f --- /dev/null +++ b/control/mdcLVgui/S5/Plane_2 @@ -0,0 +1,5 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" + diff --git a/control/mdcLVgui/S5/Plane_3 b/control/mdcLVgui/S5/Plane_3 new file mode 100755 index 0000000..42783d3 --- /dev/null +++ b/control/mdcLVgui/S5/Plane_3 @@ -0,0 +1,6 @@ +#!/bin/bash +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 2'" +sleep 5 +command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" + + diff --git a/control/mdcLVgui/call_programs2.pl b/control/mdcLVgui/call_programs2.pl new file mode 100755 index 0000000..360b8c8 --- /dev/null +++ b/control/mdcLVgui/call_programs2.pl @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +package main; + +use warnings; +use strict; +use QtCore4; +use QtGui4; +use Buttons2; + +sub main { + + my $a = Qt::Application(\@ARGV); + my $w = Qt::MainWindow; + my $u = Buttons2($w); + $w->show(); + exit $a->exec(); +} + + +main(); + -- 2.43.0