]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added xml based TDC GUI for completeness
authorJan Michel <j.michel@gsi.de>
Wed, 16 Oct 2013 11:22:17 +0000 (13:22 +0200)
committerJan Michel <j.michel@gsi.de>
Wed, 16 Oct 2013 11:22:17 +0000 (13:22 +0200)
web/htdocs/tdc/tdcstatctrl.pl [new file with mode: 0755]

diff --git a/web/htdocs/tdc/tdcstatctrl.pl b/web/htdocs/tdc/tdcstatctrl.pl
new file mode 100755 (executable)
index 0000000..595083c
--- /dev/null
@@ -0,0 +1,42 @@
+&htsponse(200, "OK");
+print "Content-type: text/html\r\n\r\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} = "TDC Status & Control";
+$page->{link}  = "../";
+
+my @setup;
+$setup[0]->{name}    = "Status";
+$setup[0]->{cmd}     = "TDC-0xfe48-Status";
+$setup[0]->{refresh} = 1;
+$setup[0]->{period}  = 10000;
+
+$setup[1]->{name}    = "Control";
+$setup[1]->{cmd}     = "TDC-0xfe48-Control";
+$setup[1]->{refresh} = 1;
+$setup[1]->{period}  = 0;
+
+
+$setup[2]->{name}    = "Inputs";
+$setup[2]->{cmd}     = "TDC-0xfe48-Channel";
+$setup[2]->{refresh} = 1;
+$setup[2]->{period}  = 0;
+
+xmlpage::initPage(\@setup,$page);
+
+
+1;
+
+