]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added TDCv4 support, mt
authorMichael Traxler <M.Traxler@gsi.de>
Mon, 3 May 2021 02:05:26 +0000 (04:05 +0200)
committerMichael Traxler <M.Traxler@gsi.de>
Mon, 3 May 2021 02:05:26 +0000 (04:05 +0200)
web/htdocs/tdc/tdcv4_stat_ctrl.pl [new file with mode: 0755]

diff --git a/web/htdocs/tdc/tdcv4_stat_ctrl.pl b/web/htdocs/tdc/tdcv4_stat_ctrl.pl
new file mode 100755 (executable)
index 0000000..770ab90
--- /dev/null
@@ -0,0 +1,49 @@
+#!/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} = "TDCv4 Status & Control";
+$page->{link}  = "../";
+
+my @setup;
+$setup[0]->{name}    = "Status";
+$setup[0]->{cmd}     = "TDCv4-0xfe53-Status-rate";
+$setup[0]->{refresh} = 1;
+$setup[0]->{period}  = 1000;
+
+$setup[1]->{name}    = "Control";
+$setup[1]->{cmd}     = "TDCv4-0xfe53-Control";
+$setup[1]->{refresh} = 1;
+$setup[1]->{period}  = 1000;
+
+
+$setup[2]->{name}    = "Inputs";
+$setup[2]->{cmd}     = "TDCv4-0xfe53-ChannelCounter-rate";
+$setup[2]->{refresh} = 1;
+$setup[2]->{period}  = 1000;
+
+xmlpage::initPage(\@setup,$page);
+
+
+1;
+
+