]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added mV in display for threshold of Padiwa, mt
authorHades DAQ <hadaq@lxhadesdaq.gsi.de>
Mon, 24 Jan 2022 20:16:40 +0000 (21:16 +0100)
committerHades DAQ <hadaq@lxhadesdaq.gsi.de>
Mon, 24 Jan 2022 20:16:40 +0000 (21:16 +0100)
web/htdocs/padiwa/padiwa.htm

index db5b75c726a0c43569d62c2b850dcc4fb35ac6d7..4053ff4c801d69181302b4bbb3854665e2cfa0ae 100644 (file)
@@ -100,9 +100,10 @@ function update(data) {
               }
             else {
               col = findcolor((val&0xffff),0x6500,0x9000,0);
-              val =((val&0xffff).toString(16));
+                valhex = ((val&0xffff).toString(16));
+                valmV  = ((val&0xffff)*50.35E-3).toString(10).slice(0,7);
               }
-            o += "<span class=\"fixed\" style=\"background:"+col+"\">"+val+"</span><br>";
+            o += "<span class=\"fixed\" style=\"background:"+col+"\">"+valhex+" "+valmV+"mV"+"</span><br>";
             }
           }
         }