From 30de0b5adb44127e25b10ab34fb40bef86d179af Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 3 Jul 2015 17:58:06 +0200 Subject: [PATCH] adding registers for Pulser AddOn --- web/htdocs/addons/pulseraddon.pl | 45 ++++++++++++++++++++ web/htdocs/index.pl | 1 + xml-db/database/Pulser.xml | 73 ++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100755 web/htdocs/addons/pulseraddon.pl create mode 100644 xml-db/database/Pulser.xml diff --git a/web/htdocs/addons/pulseraddon.pl b/web/htdocs/addons/pulseraddon.pl new file mode 100755 index 0000000..8620f92 --- /dev/null +++ b/web/htdocs/addons/pulseraddon.pl @@ -0,0 +1,45 @@ +#!/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} = "Pulser AddOn"; +$page->{link} = "../"; + +my @setup; + +push(@setup,({name => "Control", + cmd => "Pulser-0xfe61-GlobalConfig", + period => 1000, + address => 1})); + +push(@setup,({name => "PulserConfig", + cmd => "Pulser-0xfe61-PulserConfig", + period => 10000, + address => 1})); + + +xmlpage::initPage(\@setup,$page); + + + + +1; + + diff --git a/web/htdocs/index.pl b/web/htdocs/index.pl index 0b64274..69782ad 100755 --- a/web/htdocs/index.pl +++ b/web/htdocs/index.pl @@ -96,6 +96,7 @@ The main documentation of the network can be found in these documents and locati
  • CBM-MBS Receiver
  • 48ch sampling ADC
  • 48ch sampling ADC CFD +
  • Pulser AddOn
  • Everything else diff --git a/xml-db/database/Pulser.xml b/xml-db/database/Pulser.xml new file mode 100644 index 0000000..c4b2b26 --- /dev/null +++ b/xml-db/database/Pulser.xml @@ -0,0 +1,73 @@ + + + Pulse generator + + + Configuration for all channels + + Enables individual outputs + + + + + + + + + + + + + + + + + Invert individual outputs - negative pulse, logical 1 when idle + + + + + + + + + + + + + + + + + Setting for the analog pulser. + + + + + + + + + + + Settings for each pulser channel + + The period of the pulser, given in multiples of the 240 MHz clock cycle + + + + The width of the pulse, given in multiples of the 960 MHz clock cycle + + + + The offset of the pulser channel, given in multiples of the 240 MHz clock cycle + + + + + + -- 2.43.0