From: Florian Marx <fmarx@jspc71.x-matter.uni-frankfurt.de> Date: Wed, 10 Nov 2021 16:46:21 +0000 (+0100) Subject: added expert Website for shutdownlogic X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=b5de9dddc470a3c8d8287a8c2f163be76b734900;p=daqtools.git added expert Website for shutdownlogic --- 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 @@ +<?xml version="1.0" encoding="utf-8" ?> +<TrbNetEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="../schema/TrbNetEntity.xsd" + name="Shutdown2" + address="e000" + > + <description> Shutdown Logic Monitoring </description> + + +<group name="RegisterMonitoring" address="0000" purpose="config" mode="r" continuous="false"> + <!-- INDIVIDUAL Registers --> + <register name="Indiv_Timewindow" address="0000" repeat="32"> + <description>Set the individual Timewindows for every single channel</description> + <field name="Indiv_Timewindow" start="0" bits="32" format="unsigned" unit="μs" scale="100" > + <description>The size of the checked Timewindow, given in multiples of 0,1ms.</description> + </field> + </register> + <register name="Indiv_Limit" address="0100" repeat="32"> + <description>Set the maximal values of Hits for every individual channels</description> + <field name="Indiv_Limit" start="0" bits="32" format="unsigned" unit="hits" > + <description>Set the maximal values of Hits for every individual channels</description> + </field> + </register> + <!-- COMBINED Registers --> + <!-- Eindeutiger formulieren --> + <register name="Combined_max" address="0200" > + <description>How many single channels are allowed to fail simultaneously</description> + <field name="Combined_max" start="0" bits="32" format="unsigned" > + <description>How many single channels are allowed to fail simultaneously</description> + </field> + </register> + + <register name="ONOFF_Switch" address="0600"> + <description>Switch off the whole Shutdown Logic</description> + <field name="ONSwitch" start="0" bits="1" format="bitmask" > + <description>Switch off the whole Shutdown Logic</description> + </field> + </register> + + <register name="Plot_Binsize" address="0610" > + <description>Set the binsize for the plotintervall</description> + <field name="Plot_Binsize" start="0" bits="32" format="unsigned" > + <description>Set the binsize for the plotintervall</description> + </field> + </register> + + <register name="Failsave_Binsize" address="0620" > + <description>Set the binsize for the saved data in case of a shutdown</description> + <field name="Failsave_Binsize" start="0" bits="32" format="unsigned" > + <description>Set the binsize for the saved data in case of a shutdown</description> + </field> + </register> + <!-- </group> + + <group name="StatusRegisters" address="0400" purpose="status" mode="r" > --> + <register name="Current_count" address="0400" mode="r" repeat="32"> + <description> Value of the currently countet Hits</description> + <field name="Current_count" start="0" bits="24" format="unsigned" unit="hits" > + <description>Value of the currently countet Hits</description> + </field> + </register> + <register name="Channel_Disable" address="0300"> + <description>Option to disable single channels</description> + <field name="Diabled_Channels" start="0" bits="24" format="bitmask" > + <description>Option to disable single channels</description> + </field> + </register> + <register name="Individual_alerts" address="0500" mode="r"> + <description> Single alert bits </description> + <field name="Individual_alerts" start="0" bits="24" format="bitmask" > + <description> Single alert bits </description> + </field> + </register> + <register name="Final_ShutdownPulse" address="0700" mode="r"> + <description> Indication, if Shutdown Pulse is active. </description> + <field name="Final_ShutdownPulse" start="0" bits="1" format="bitmask" > + <description> Indication, if Shutdown Pulse is active. </description> + </field> + </register> + </group> + + +</TrbNetEntity> 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 @@ </field> </register> <!-- COMBINED Registers --> - <!-- Eindeutiger formulieren --> <register name="Combined_max" address="0200" > <description>How many single channels are allowed to fail simultaneously</description> <field name="Combined_max" start="0" bits="32" format="unsigned" > <description>How many single channels are allowed to fail simultaneously</description> </field> </register> - <register name="Channel_Disable" address="0300"> - <description>Option to disable single channels</description> - <field name="Channel_Disable" start="0" bits="24" format="bitmask" > - <description>Option to disable single channels</description> - </field> - </register> + <register name="ONOFF_Switch" address="0600"> <description>Switch off the whole Shutdown Logic</description> <field name="ONSwitch" start="0" bits="1" format="bitmask" > <description>Switch off the whole Shutdown Logic</description> </field> </register> - <!-- </group> + + <register name="Plot_Binsize" address="0610" > + <description>Set the binsize for the plotintervall</description> + <field name="Plot_Binsize" start="0" bits="32" format="unsigned" > + <description>Set the binsize for the plotintervall</description> + </field> + </register> + + <register name="Failsave_Binsize" address="0620" > + <description>Set the binsize for the saved data in case of a shutdown</description> + <field name="Failsave_Binsize" start="0" bits="32" format="unsigned" > + <description>Set the binsize for the saved data in case of a shutdown</description> + </field> + </register> + +<!-- + </group> @@ -52,6 +62,12 @@ <description>Value of the currently countet Hits</description> </field> </register> + <register name="Channel_Disable" address="0300"> + <description>Option to disable single channels</description> + <field name="Channel_Disable" start="0" bits="24" format="bitmask" > + <description>Option to disable single channels</description> + </field> + </register> <register name="Individual_alerts" address="0500" mode="r"> <description> Single alert bits </description> <field name="Individual_alerts" start="0" bits="24" format="bitmask" >