]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added ADC information to network map
authorJan Michel <j.michel@gsi.de>
Fri, 5 Dec 2014 13:18:07 +0000 (14:18 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 5 Dec 2014 13:18:07 +0000 (14:18 +0100)
web/htdocs/network/map.pl

index 9e26e45e8bbf6d0e0f94e024f098856dfdff32aa..0a8ac78af2799ca571503f7f109f048ba8a0a31c 100755 (executable)
@@ -159,8 +159,18 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
           $feat .= GetTDCInfo($addr,$inclLow->{$addr},1);
           }
         }
-      if($table == 1 || $table == 2) {
-       if ($inclHigh->{$addr} & 0x200) { $feat .= "\nReference Time: through Clock Manager";}
+      if($table == 4) {
+        $feat .= sprintf("Channels: %i",               $inclLow->{$addr}>>16 & 0x000000ff);
+        $feat .= sprintf(", Sampling Frequency %i MHz",$inclLow->{$addr}>>0  & 0x000000ff);
+        $feat .= "\nDummy read-out"                if ($inclLow->{$addr}&0x0f00) == 0x000;
+        $feat .= "\nBasic Processing and trigger"  if ($inclLow->{$addr}&0x0f00) == 0x100;
+        $feat .= "\nAdvanced filtering"            if ($inclLow->{$addr}&0x0f00) == 0x200;
+        $feat .= "\nFeature Extraction"            if ($inclLow->{$addr}&0x0f00) == 0x800;
+        $feat .= ", baseline determination"        if ($inclLow->{$addr}&0x4000);
+        $feat .= ", trigger generation"            if ($inclLow->{$addr}&0x8000);
+        }
+      if($table == 1 || $table == 2 || $table == 4) {
+        if ($inclHigh->{$addr} & 0x200) { $feat .= "\nReference Time: through Clock Manager";}
         if ($inclHigh->{$addr} & 0x400) { $feat .= "\nSPI";}
         if ($inclHigh->{$addr} & 0x800) { $feat .= "\nUART";}
         if ($inclHigh->{$addr}>>12&0xF) {