00001 { 00002 // Recover from one link off! 00003 tapi.sendABCDModules(0); 00004 00005 TScanDef bypass; 00006 00007 bypass.trigsPerBurst = 100; 00008 bypass.trigSequence.singleL1A(); 00009 // softPulseL1A(150, 129); // Is this necessary? 00010 bypass.distSlave = 1; 00011 00012 tapi.modifyABCDVar(11, 1.0); 00013 tapi.modifyABCDVar(13, 0.0); 00014 tapi.modifyABCDVar(14, 1.0); // Send mask 00015 tapi.modifyABCDVar( 7, 3.0); // All channels on 00016 00017 // tapi.setDebugOption("scan_auto_stall"); 00018 // tapi.setDebugOption("scan_error_trap"); 00019 // tapi.setDebugOption("scan_pause_pulse"); 00020 00021 bypass.debug = 0; 00022 00023 // SCTDAQ does 0-36 (inc) but 36 doesn't work on the barrel 00024 bypass.configure(19, 0, 35, 1); // Scan over ST_TOKEN 00025 00026 tapi.doScan(bypass); 00027 tapi.awaitScan(); 00028 00029 // Make sure all chips are back on 00030 tapi.modifyABCDVar(19, 19.0); // Reset to all chips 00031 tapi.setABCDModules(0); 00032 tapi.sendABCDModules(0); 00033 }