From: hadeshyp Date: Tue, 4 Dec 2012 17:47:18 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=695bde38ff3046e7265be92a20b94c967f1fb4d9;p=daqtools.git *** empty log message *** --- diff --git a/cts/htdocs/commands/putbit.pl b/cts/htdocs/commands/putbit.pl index 2627cd2..813ed54 100755 --- a/cts/htdocs/commands/putbit.pl +++ b/cts/htdocs/commands/putbit.pl @@ -1,3 +1,4 @@ +#!/usr/bin/perl -w &htsponse(200, "OK"); print "Content-type: text/html\r\n\r\n"; @@ -17,6 +18,9 @@ $board = hex($board); $addr = hex($addr); $value = hex($value); +print "$board $addr $value\n"; + + if($op eq "set") { trb_register_setbit($board,$addr,$value); } diff --git a/cts/htdocs/tdc/tdc.htm b/cts/htdocs/tdc/tdc.htm index 199461d..781e102 100644 --- a/cts/htdocs/tdc/tdc.htm +++ b/cts/htdocs/tdc/tdc.htm @@ -49,7 +49,8 @@ var regnames = new Array("Temperature","debug
channels
ref input","window var updateTask; var updateRegsTask; -var enableGroup = new Array(0,0); +var enableGroup = new Array(); +for(i=0;i<1000;i++) enableGroup[i] = new Array(); function settimers(time1,time2) { @@ -113,7 +114,8 @@ function update(data) { o += ""; o += (val); if(showenable && i!=1) { - checked = (enableGroup[Math.floor((i-2)/32)]&1<<(i-2)%32)?"checked":""; +// if(i==2) alert(enableGroup[j][0]+enableGroup[j][1]); + checked = (enableGroup[j][Math.floor((i-2)/32)]&1<<(i-2)%32)?"checked":""; o += ""; } } @@ -186,8 +188,8 @@ function updateregs(data) { } else if(i==17 || i==16 || i==15) { o += (val*1).toString(16); - if(i==16) enableGroup[0] = val*1.; - if(i==17) enableGroup[1] = val*1.; + if(i==16) enableGroup[j][0] = val*1.; + if(i==17) enableGroup[j][1] = val*1.; } else { o += val;