]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
update
authorhadaq@CountingHouse <hadaq@CountingHouse>
Mon, 28 Apr 2014 08:49:56 +0000 (10:49 +0200)
committerhadaq@CountingHouse <hadaq@CountingHouse>
Mon, 28 Apr 2014 10:48:50 +0000 (12:48 +0200)
tools/dac_program.pl
users/cosy_test/nxscripts/mode_p.sh
users/cosy_test/nxscripts/mode_t.sh
users/cosy_test/nxscripts/mode_tp.sh
users/cosy_test/nxscripts/trig_pulser.sh
web/htdocs/nxyter/index_a.pl

index bcc33f5ba4833c4d525cdc9c53499d7d14331aae..b35319d7d6767f64ab5b40f7233163c5c6740299 100755 (executable)
@@ -48,7 +48,7 @@ while (my $a = <$fh>) {
     $chain = hex(substr($chain,2)) if (substr($chain,0,2) eq "0x");
     $cmd   = hex($cmd);
     $board = hex($board);
-    
+    printf("0x%04x %i %i/%i %04x %i\n",$board,$chain,$dac,$chainlen,$val,$cmd);    
     if ($val+$offset >= $reference || $val+$offset < 0) {
       printf(STDERR "Error, value %i with offset %i is higher or lower than reference %i\n",$val,$offset,$reference);
       next;
@@ -65,7 +65,8 @@ while (my $a = <$fh>) {
     $values[16] = $chain;
     $values[17] = $chainlen;
     $values[$chainlen-1-$dac] = $o;
-#     print Dumper @values;
+#    print Dumper @values;
+#    print "\n";
     trb_register_write_mem($board,0xd400,0,\@values,18) or die "trb_register_write_mem: ", trb_strerror(); 
     usleep(5*$chainlen);
     }
index 9b2dab1881a7b7e65cb459460fd63f792d6ad104..43ed8701482765a2668a3a294549ccde4d271240 100755 (executable)
@@ -9,4 +9,4 @@ trbcmd clearbit $addr $(( 0x8200 + 32 )) 0x08
 trbcmd w $addr 0x8218 0xff
 
 trbcmd w $addr 0x8160 1
-trbcmd w $addr 0x8140 100
+trbcmd w $addr 0x8162 100
index 5dcc2dcdd98eca2b456dfc4f3cb6eb411a8fb9c7..cfa6b60d1484a79a2bb538eb2a6b2fb7cd20689b 100755 (executable)
@@ -7,6 +7,6 @@ trbcmd clearbit $addr $(( 0x8200 + 32 )) 0x01
 trbcmd setbit $addr $(( 0x8200 + 32 )) 0x08
 
 trbcmd w $addr 0x8160 1
-trbcmd w $addr 0x8140 100
+trbcmd w $addr 0x8162 100
 
 trbcmd w $addr 0x8218 0xff
index adf77efedbe8538ce373f1e33c0df8a83a7bcc82..8b8d8b57e987c557af38430e6f53464abe2a09dd 100755 (executable)
@@ -13,4 +13,4 @@ trbcmd setbit $addr $(( 0x8200 + 32 )) 0x08
 trbcmd w $addr 0x8218 0xff
 
 trbcmd w $addr 0x8160 1
-trbcmd w $addr 0x8140 100
+trbcmd w $addr 0x8162 100
index f3db702b4efd2b90df37a28308275f812a222974..0d13a0aaf57279468442a166d28f37710731dd0d 100755 (executable)
@@ -7,7 +7,7 @@
 #trbcmd w $addr 0x8182 250
 #trbcmd w $addr 0x8183 100
 
-#trbcmd w $addr 0x8140 1
+#trbcmd w $addr 0x8162 1
 #trbcmd w $addr 0x8144 1
 
 trbcmd w $addr 0x8160 1
index 97a133b53ca95c8dfdb3170b9524f1edf88e59fc..5d501d3f2b0bdcade6e6e57c169f2950269d2651 100755 (executable)
@@ -24,102 +24,102 @@ $page->{link}  = "../";
 
 my @setup;
 
-$setup[0]->{name}    = "Rate_0";
+$setup[0]->{name}    = "R_0";
 $setup[0]->{cmd}     = "Nxyter-0x3800-RateHist-rate";
 $setup[0]->{period}  = -1;
 $setup[0]->{address} = 1;
 
-$setup[1]->{name}    = "Rate_1";
+$setup[1]->{name}    = "R_1";
 $setup[1]->{cmd}     = "Nxyter-0x3801-RateHist-rate";
 $setup[1]->{period}  = -1;
 $setup[1]->{address} = 1;
 
-$setup[2]->{name}    = "Rate_2";
+$setup[2]->{name}    = "R_2";
 $setup[2]->{cmd}     = "Nxyter-0x3810-RateHist-rate";
 $setup[2]->{period}  = -1;
 $setup[2]->{address} = 1;
 
-$setup[3]->{name}    = "Rate_3";
+$setup[3]->{name}    = "R_3";
 $setup[3]->{cmd}     = "Nxyter-0x3811-RateHist-rate";
 $setup[3]->{period}  = -1;
 $setup[3]->{address} = 1;
 
-$setup[4]->{name}    = "Pileup_0";
+$setup[4]->{name}    = "P_0";
 $setup[4]->{cmd}     = "Nxyter-0x3800-PileupHist-rate";
 $setup[4]->{period}  = -1;
 $setup[4]->{address} = 1;
 
-$setup[5]->{name}    = "Pileup_1";
+$setup[5]->{name}    = "P_1";
 $setup[5]->{cmd}     = "Nxyter-0x3801-PileupHist-rate";
 $setup[5]->{period}  = -1;
 $setup[5]->{address} = 1;
 
-$setup[6]->{name}    = "Pileup_2";
+$setup[6]->{name}    = "P_2";
 $setup[6]->{cmd}     = "Nxyter-0x3810-PileupHist-rate";
 $setup[6]->{period}  = -1;
 $setup[6]->{address} = 1;
 
-$setup[7]->{name}    = "Pileup_3";
+$setup[7]->{name}    = "P_3";
 $setup[7]->{cmd}     = "Nxyter-0x3811-PileupHist-rate";
 $setup[7]->{period}  = -1;
 $setup[7]->{address} = 1;
 
-$setup[8]->{name}    = "Ovfl_0";
+$setup[8]->{name}    = "O_0";
 $setup[8]->{cmd}     = "Nxyter-0x3800-OverFlowHist-rate";
 $setup[8]->{period}  = -1;
 $setup[8]->{address} = 1;
 
-$setup[9]->{name}    = "Ovfl_1";
+$setup[9]->{name}    = "O_1";
 $setup[9]->{cmd}     = "Nxyter-0x3801-OverFlowHist-rate";
 $setup[9]->{period}  = -1;
 $setup[9]->{address} = 1;
 
-$setup[10]->{name}    = "Ovfl_2";
+$setup[10]->{name}    = "O_2";
 $setup[10]->{cmd}     = "Nxyter-0x3810-OverFlowHist-rate";
 $setup[10]->{period}  = -1;
 $setup[10]->{address} = 1;
 
-$setup[11]->{name}    = "Ovfl_3";
+$setup[11]->{name}    = "O_3";
 $setup[11]->{cmd}     = "Nxyter-0x3811-OverFlowHist-rate";
 $setup[11]->{period}  = -1;
 $setup[11]->{address} = 1;
 
-$setup[12]->{name}    = "ADC_0";
+$setup[12]->{name}    = "A_0";
 $setup[12]->{cmd}     = "Nxyter-0x3800-ADCHist";
 $setup[12]->{period}  = -1;
 $setup[12]->{address} = 1;
 
-$setup[13]->{name}    = "ADC_1";
+$setup[13]->{name}    = "A_1";
 $setup[13]->{cmd}     = "Nxyter-0x3801-ADCHist";
 $setup[13]->{period}  = -1;
 $setup[13]->{address} = 1;
 
-$setup[14]->{name}    = "ADC_2";
+$setup[14]->{name}    = "A_2";
 $setup[14]->{cmd}     = "Nxyter-0x3810-ADCHist";
 $setup[14]->{period}  = -1;
 $setup[14]->{address} = 1;
 
-$setup[15]->{name}    = "ADC_3";
+$setup[15]->{name}    = "A_3";
 $setup[15]->{cmd}     = "Nxyter-0x3811-ADCHist";
 $setup[15]->{period}  = -1;
 $setup[15]->{address} = 1;
 
-$setup[16]->{name}    = "IToken_0";
+$setup[16]->{name}    = "IT_0";
 $setup[16]->{cmd}     = "Nxyter-0x3800-I2CTokens";
 $setup[16]->{period}  = -1;
 $setup[16]->{address} = 1;
 
-$setup[17]->{name}    = "IToken_1";
+$setup[17]->{name}    = "IT_1";
 $setup[17]->{cmd}     = "Nxyter-0x3801-I2CTokens";
 $setup[17]->{period}  = -1;
 $setup[17]->{address} = 1;
 
-$setup[18]->{name}    = "IToken_2";
+$setup[18]->{name}    = "IT_2";
 $setup[18]->{cmd}     = "Nxyter-0x3810-I2CTokens";
 $setup[18]->{period}  = -1;
 $setup[18]->{address} = 1;
 
-$setup[19]->{name}    = "IToken_3";
+$setup[19]->{name}    = "IT_3";
 $setup[19]->{cmd}     = "Nxyter-0x3811-I2CTokens";
 $setup[19]->{period}  = -1;
 $setup[19]->{address} = 1;