From 328b07d91c26bbacfb753bef9dd1be394213b499 Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Mon, 23 Feb 2015 13:41:29 +0100 Subject: [PATCH] settings descriptions for pmt_ro module --- user_interface/coral_scanner.pm | 8 +++++--- user_interface/pmt_ro.pm | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/user_interface/coral_scanner.pm b/user_interface/coral_scanner.pm index abff5dc..a4478be 100644 --- a/user_interface/coral_scanner.pm +++ b/user_interface/coral_scanner.pm @@ -8,6 +8,7 @@ use POSIX qw/strftime/; use POSIX; use Device::SerialPort; use Data::Dumper; +use Proc::Daemon; use SVG; @@ -44,6 +45,7 @@ sub new { approx_upper_rate => 4000, plot_lower_limit => 0, plot_upper_limit => 4000, + pidfile => "./coral_scanner.pid", }; $self->{settings_desc} = { @@ -52,7 +54,7 @@ sub new { is used for setting the value range of the plot", plot_lower_limit => "lower contrast setting for the plot", plot_upper_limit => "upper contrast setting for the plot", - + pidfile => "/path/to/file of the lockfile for the scanning background process", }; $self->{has_run} = {}; # remember which subs already have run @@ -127,8 +129,8 @@ sub main_html { print '
'; print br; print ""; - print ""; + print ""; print br; print br; print "estimated scan duration: ".hms_string($self->scan_ETA()); diff --git a/user_interface/pmt_ro.pm b/user_interface/pmt_ro.pm index eaa2c75..12df597 100644 --- a/user_interface/pmt_ro.pm +++ b/user_interface/pmt_ro.pm @@ -57,6 +57,21 @@ sub new { spectrum_bins => 24, spectrum_delay => 1 }; + + $self->{settings_desc} = { # hard default settings + tty => "address of the serial interface", + baudrate => "baudrate of serial interface", + signal_zero => "comparator reference voltage setting equal to unplugged/shorted signal input", + veto_zero => "comparator reference voltage setting equal to unplugged/shorted veto signal input", + is_calibrated => "equals 1 if signal_zero and veto_zero have been calibrated by automatic scan procedure", + dead_time => "dead time of the counter in the unit of FPGA clock cycles (133MHz). An artificial dead time is introduced to avoid double triggering of the discriminator", + signal_thresh => "disciminator threshold of the signal input", + veto_thresh => "discriminator threshold of the veto input", + spectrum_start => "start threshold of spectral scan", + spectrum_stop => "stop/end threshold of spectral scan", + spectrum_bins => "number of bins for spectral scan", + spectrum_delay => "count integration time for each bin of spectral scan", + }; $self->{has_run} = {}; # remember which subs already have run -- 2.43.0