]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 4 Dec 2012 17:47:18 +0000 (17:47 +0000)
committerhadeshyp <hadeshyp>
Tue, 4 Dec 2012 17:47:18 +0000 (17:47 +0000)
cts/htdocs/commands/putbit.pl
cts/htdocs/tdc/tdc.htm

index 2627cd210636a395899119e6e89b519f4520ecd4..813ed54393f35599c6c2ca2caddbd419a065c0c0 100755 (executable)
@@ -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);
   }
index 199461dbbe22a87149b097b5728f9ef4a93b5564..781e10205479293231a4b95cb8f2df2dc170a659 100644 (file)
@@ -49,7 +49,8 @@ var regnames = new Array("Temperature","debug<br>channels<br>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 += "<td>";
       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 += "<input class=\"checkbox\" type=\"checkbox\" onClick=\"setEnable(this,'"+c[j][0]+"',"+(i-2)+")\" "+checked+">";
         }
       }
@@ -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;