From: Your Name Date: Fri, 7 Mar 2014 10:24:02 +0000 (+0100) Subject: added web interface for input monitor X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2e50a534cf9132c1ae24433f26689b4fff83f8a9;p=daqtools.git added web interface for input monitor --- diff --git a/web/htdocs/tdc/inputmonitor.pl b/web/htdocs/tdc/inputmonitor.pl new file mode 100755 index 0000000..b16abc0 --- /dev/null +++ b/web/htdocs/tdc/inputmonitor.pl @@ -0,0 +1,53 @@ +#!/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} = "Input Monitor and Trigger Preparation"; +$page->{link} = "../"; + + +my @setup; +$setup[0]->{name} = "MonitorCtrl"; +$setup[0]->{cmd} = "InputMonitor-0xfe4e-MonitorRegs"; +$setup[0]->{period} = 1000; +$setup[0]->{address} = 1; +$setup[0]->{rate} = 1; + +$setup[1]->{name} = "MonitorCounters"; +$setup[1]->{cmd} = "InputMonitor-0xfe4e-MonitorCounters"; +$setup[1]->{period} = 1000; +$setup[1]->{address} = 1; +$setup[1]->{rate} = 1; + +$setup[2]->{name} = "Trigger"; +$setup[2]->{cmd} = "InputMonitor-0xfe4e-Trigger"; +$setup[2]->{period} = 1000; +$setup[2]->{address} = 1; +$setup[2]->{rate} = 1; + + +xmlpage::initPage(\@setup,$page); + + + + +1; + +