From: hadeshyp Date: Mon, 15 Oct 2012 13:46:18 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9a5dc6db2ba3a20066762757f58dfbbc04a2f588;p=daqtools.git *** empty log message *** --- diff --git a/cts/htdocs/thresh/hitcounter.pl b/cts/htdocs/thresh/hitcounter.pl index e61d40a..8ac2e6e 100755 --- a/cts/htdocs/thresh/hitcounter.pl +++ b/cts/htdocs/thresh/hitcounter.pl @@ -28,7 +28,8 @@ my $board = 0xffff; my $e = <Hit Counters
-
Board: +
Board +
# of Channels
Update Interval (ms)
Differences
@@ -41,7 +42,7 @@ print $e; print "
ChannelValue\n"; -for(my $c =0; $c < 64; $c++) { +for(my $c =0; $c < channels; $c++) { print "
$c"; } @@ -52,7 +53,8 @@ $e = < var updaterate = document.getElementById("form_rate").value; var board = document.getElementById("form_board").value; -var updateTask = setInterval("getdata('get.pl?"+board+"-4000-64',update)",updaterate); +var channels = document.getElementById("form_channels").value; +var updateTask = setInterval("getdata('get.pl?"+board+"-c000-"+channels+"',update)",updaterate); var differences= document.getElementById("form_diff").checked; var oldvalues = {}; @@ -69,7 +71,7 @@ function update(data) { o += ""+c[j][0]; } - for(i = 1; i <= 64; i++) { + for(i = 1; i <= channels; i++) { o += "
"+(i-1); for(j=0;j