From b5de9dddc470a3c8d8287a8c2f163be76b734900 Mon Sep 17 00:00:00 2001 From: Florian Marx Date: Wed, 10 Nov 2021 17:46:21 +0100 Subject: [PATCH] added expert Website for shutdownlogic --- web/htdocs/tools/beamabort.pl | 43 +++++++++++++ xml-db/database/ShutDownMonitoring.xml | 83 ++++++++++++++++++++++++++ xml-db/database/ShutdownLogic.xml | 32 +++++++--- 3 files changed, 150 insertions(+), 8 deletions(-) create mode 100755 web/htdocs/tools/beamabort.pl create mode 100644 xml-db/database/ShutDownMonitoring.xml diff --git a/web/htdocs/tools/beamabort.pl b/web/htdocs/tools/beamabort.pl new file mode 100755 index 0000000..211cb0e --- /dev/null +++ b/web/htdocs/tools/beamabort.pl @@ -0,0 +1,43 @@ +#!/usr/bin/perl +if ($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i) { + print "HTTP/1.0 200 OK\n"; + print "Content-type: text/html\r\n\r\n"; + } +else { + use lib '..'; + use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv; + print "Content-type: text/html\n\n"; + } + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "BeamAbort"; +$page->{link} = "../"; + +my @setup; +my $i = 0; + +$setup[$i]->{name} = "Monitoring"; +$setup[$i]->{cmd} = "Shutdown2-0xfb35-RegisterMonitoring"; +$setup[$i]->{period} = 1000; +$setup[$i]->{address} = 1; + +$i++; +$setup[$i]->{name} = "Expert"; +$setup[$i]->{cmd} = "ShutdownLogic-0xfb35-ConfigRegisters"; +$setup[$i]->{period} = 10000; +$setup[$i]->{address} = 1; + +xmlpage::initPage(\@setup,$page); + +1; + + diff --git a/xml-db/database/ShutDownMonitoring.xml b/xml-db/database/ShutDownMonitoring.xml new file mode 100644 index 0000000..1d8d8db --- /dev/null +++ b/xml-db/database/ShutDownMonitoring.xml @@ -0,0 +1,83 @@ + + + Shutdown Logic Monitoring + + + + + + Set the individual Timewindows for every single channel + + The size of the checked Timewindow, given in multiples of 0,1ms. + + + + Set the maximal values of Hits for every individual channels + + Set the maximal values of Hits for every individual channels + + + + + + How many single channels are allowed to fail simultaneously + + How many single channels are allowed to fail simultaneously + + + + + Switch off the whole Shutdown Logic + + Switch off the whole Shutdown Logic + + + + + Set the binsize for the plotintervall + + Set the binsize for the plotintervall + + + + + Set the binsize for the saved data in case of a shutdown + + Set the binsize for the saved data in case of a shutdown + + + + + Value of the currently countet Hits + + Value of the currently countet Hits + + + + Option to disable single channels + + Option to disable single channels + + + + Single alert bits + + Single alert bits + + + + Indication, if Shutdown Pulse is active. + + Indication, if Shutdown Pulse is active. + + + + + + diff --git a/xml-db/database/ShutdownLogic.xml b/xml-db/database/ShutdownLogic.xml index 4eaa8da..d35995b 100644 --- a/xml-db/database/ShutdownLogic.xml +++ b/xml-db/database/ShutdownLogic.xml @@ -22,26 +22,36 @@ - How many single channels are allowed to fail simultaneously How many single channels are allowed to fail simultaneously - - Option to disable single channels - - Option to disable single channels - - + Switch off the whole Shutdown Logic Switch off the whole Shutdown Logic -