interModule.cxx

00001 {
00002 #include "../extraScans.h"
00003 // Inter module timing?
00004 TScanDef inter;
00005 
00006 inter.trigsPerBurst = 10;
00007 inter.trigSequence.singleL1A();
00008 
00009 tapi.modifyBOCParam(SCT_SCAN_BOC_VRN_FINE, 127);
00010 
00011 // Put all modules in clk/2 mode
00012 tapi.modifyABCDVar(ST_FEEDTHROUGH, 0.0);
00013 tapi.setABCDModules(0);
00014 tapi.sendABCDModules(0);
00015 
00016 // {
00017 //   // VREG 24 -> 0
00018 //   tapi.modifyBOCParam(SCT_SCAN_BOC_V1_PHASE, 0);
00019 //   inter.configure(SCT_SCAN_BOC_V0_PHASE, 24, 0, -1);
00020 
00021 //   // Sample at clock/2 rate
00022 //   tapi.doRawScan(raw, 1, 768, false, true);
00023 //   tapi.awaitScan();
00024 // }
00025 
00026 // {
00027 //   // VREG 24->48
00028 //   tapi.modifyBOCParam(SCT_SCAN_BOC_V1_PHASE, 24);
00029 //   inter.configure(SCT_SCAN_BOC_V0_PHASE, 0, 24, 1);
00030 
00031 //   // Sample at clock/2 rate
00032 //   tapi.doRawScan(raw, 1, 768, false, true);
00033 //   tapi.awaitScan();
00034 // }
00035 
00036 // Repeat for each select line 
00037  {
00038    {
00039      // VREG 0 -> 48
00040      inter.configure(SCT_SCAN_BOC_V_PHASES, 0, 48, 1);
00041 
00042      // Sample at clock/2 rate
00043      tapi.doRawScan(inter, 1, 768, false, true);
00044      tapi.awaitScan();
00045    }
00046 
00047    // Find a 12ns range which contains the transitions of all the modules
00048    tapi.modifyBOCParam(SCT_SCAN_BOC_V_PHASES, 24);
00049 
00050    {
00051      // VERNIER 0 -> 255
00052      inter.configure(SCT_SCAN_BOC_VRN_FINE, 0, 255, 1);
00053 
00054      // Sample at clock/2 rate
00055      tapi.doRawScan(inter, 1, 768, false, true);
00056      tapi.awaitScan();
00057    }
00058  }
00059 
00060  // Set up BPM delays and repeat
00061 }

Generated on Mon Feb 6 14:01:21 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6