]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
init_system.pl knows now the systems ProbeStation and ELnew
authorMichael Wiebusch <m.wiebusch@gsi.de>
Mon, 4 May 2015 14:02:35 +0000 (16:02 +0200)
committerMichael Wiebusch <m.wiebusch@gsi.de>
Mon, 4 May 2015 14:02:35 +0000 (16:02 +0200)
tools/init_system.pl

index 8be4b9e6f83245b2a12e64629bc03ff18c7c885a..c3b5a194338303c970175bacb5e72264392c932d 100755 (executable)
@@ -89,6 +89,18 @@ if($system eq 'Vacuum') {
 #  trb_write($ccu,0x00c1,0x00e1);
 #  trb_write($ccu,0x00c3,0x00ff);   # unused FPGAs: enable slowcontrol only
   }
+if($system eq 'ProbeStation') {
+  trb_write($ccu,0x00c0,0x00f1);
+  trb_write($ccu,0x00c1,0x00f1);
+  trb_write($ccu,0x00c3,0x00f1);
+  }  
+  
+if($system eq 'ELnew') {
+  trb_write($ccu,0x00c0,0x00f1);
+  trb_write($ccu,0x00c1,0x00f1);
+  trb_write($ccu,0x00c3,0x00f1);
+  trb_write($ccu,0xa150,0x2cff); #pulser to frame rate
+  }
 if($system eq 'ELab') {
 
 #   trb_write($ccu,0x00c0,0x00ec);
@@ -105,6 +117,14 @@ if($system eq 'ELab') {
   }
 
 #Send arbiter start signal
-trb_write($ccu,0xa000,0x00000001);
+#trb_write($ccu,0xa000,0x00000001);
+
+
+trb_write($_,0x8041,0x8d00) for @roc;
+
+trb_write($ccu,0xa150,0x2cff);  #115.19us
+trb_write($ccu,0xa101,0x00000001);
+
+
 
 print "</pre>" if $isHttpReq;