my $interval_step = ($valid_interval[1] - $valid_interval[0])/2;
my $start_value = int ( ($valid_interval[1] + $valid_interval[0])/2 );
-my $sleep_time = 1.0;
-my $accepted_dark_rate = 150;
+my $sleep_time = 0.2;
+my $accepted_dark_rate = 10;
my $number_of_iterations = 40; # at least 15 are recommended
my $endpoint = 0x0303;
use strict;
use warnings;
use Data::Dumper;
-use Dmon;
+#use Dmon;
use Getopt::Long;
use HADES::TrbNet;
use POSIX qw(strftime);
#Put Information to logfile and timestamp to billboard information
-chomp $f[0];
-system("echo \"".strftime("%Y-%m-%d %H:%M:%S",localtime()).'\t'.time.'\t'.
- $offset.'\t'.$f[0]."\">>threshold_log.txt");
-my ($t) = $f[0] =~ /(\d{10})/;
-system("echo $t>thresh/billboard_timestamp");
-my $offsetV = (32768 + $offset) & 0xffff;;
-system("echo $offsetV > thresh/billboard_offset");
+#chomp $f[0];
+#system("echo \"".strftime("%Y-%m-%d %H:%M:%S",localtime()).'\t'.time.'\t'.
+# $offset.'\t'.$f[0]."\">>threshold_log.txt");
+#my ($t) = $f[0] =~ /(\d{10})/;
+#system("echo $t>thresh/billboard_timestamp");
+#my $offsetV = (32768 + $offset) & 0xffff;;
+#system("echo $offsetV > thresh/billboard_offset");
my $count=0;