00001 { 00002 // Double trigger for each module 00003 // configuration changes as nmask 00004 TScanDef dble; 00005 00006 dble.trigsPerBurst = 500; 00007 dble.configure(0, 110, 140, 1); 00008 00009 // dble.trigSequence.singleL1A(); 00010 dble.trigSequence.doubleL1A(130); 00011 dble.trigSequence.incCmd = 1; 00012 dble.trigSequence.incData = 1; 00013 00014 // dble.full = 0; 00015 dble.bits32 = 1; 00016 // dble.loopCalLine = 0; 00017 00018 // To one slave only 00019 dble.distSlave = 0; 00020 // dble.debug = 1; 00021 // dble.tim = 0; 00022 dble.nth = 2; 00023 // dble.nth_rem = 0; // Capture the first trigger 00024 dble.nth_rem = 1; // Capture the second trigger 00025 00026 // tapi.setDebugOption("scan_error_trap_all"); 00027 // tapi.setDebugOption("scan_step_mode"); 00028 00029 tapi.modifyABCDVar(9, 0.0); // Don't mask anything! 00030 tapi.modifyABCDVar(11, 1.0); 00031 tapi.modifyABCDVar(13, 0.0); 00032 tapi.modifyABCDVar(14, 0.0); 00033 00034 tapi.modifyABCDVar(41, 1.0); // QTHR Set to 1fC 00035 00036 tapi.doScan(dble); 00037 tapi.awaitScan(); 00038 }