]> jspc29.x-matter.uni-frankfurt.de Git - coral.git/commitdiff
added errormessage
authorMichael Wiebusch <antiquark@gmx.net>
Fri, 31 Oct 2014 14:15:40 +0000 (15:15 +0100)
committerMichael Wiebusch <antiquark@gmx.net>
Fri, 31 Oct 2014 14:15:40 +0000 (15:15 +0100)
user_interface/pmt_ro.pl

index 92709a8488ced524dad2236e7c450d193d17013a..aa68f46d10b96d1ad89aea9b7e7efeb17c41f425 100755 (executable)
@@ -48,6 +48,7 @@ use CGI::Carp qw(fatalsToBrowser);
 use Data::Dumper;
 use Pod::Usage;
 use regio;
+use manage_settings;
 # use Switch;
 
 
@@ -237,6 +238,8 @@ sub find_baseline {
     Time::HiRes::sleep($delay); # let RC filter settle
     my $counts = $self->{regio}->read($counter_addr); # look if transition(s) happened
     
+    die "Padiwa does not answer!\n" unless defined($counts);
+    
     if( $i==0 and $counts==0){
       die "Something is very wrong! No transition was observed as the whole DAC range was covered!\n";
     }