00001 { 00002 TScanDef nmask; 00003 00004 nmask.trigsPerBurst = 100; 00005 // nmask.configure(9, 128, 0, -1); 00006 nmask.configure(9, 0, 128, 1); 00007 nmask.trigSequence.singleL1A(); 00008 // nmask.trigSequence.softL1A(20); 00009 00010 // nmask.full = 0; 00011 nmask.bits32 = 1; 00012 // nmask.loopCalLine = 0; 00013 nmask.distSlave = 1; 00014 // nmask.debug = 0; 00015 // nmask.tim = 0; 00016 00017 00018 // Stall histogram on first error 00019 // tapi.setDebugOption("scan_auto_stall"); 00020 00021 // Use slave 2 to trap all events in error mode 00022 // tapi.setDebugOption("scan_error_trap"); 00023 00024 // Go into step mode, step is toggled by bit 7 of MDSP diagnostic register 00025 // tapi.setDebugOption("scan_step_mode"); 00026 00027 // Use the "mode bits" in the ROD formatters not the DSP (should be faster) 00028 // tapi.setDebugOption("scan_rod_mode_bits"); 00029 00030 tapi.modifyABCDVar(11, 1.0); 00031 tapi.modifyABCDVar(13, 0.0); 00032 tapi.modifyABCDVar(14, 1.0); // Send mask bit 00033 tapi.doScan(nmask); 00034 tapi.awaitScan(); 00035 00036 // Turn all options off afterwards 00037 // tapi.unsetDebugOption("scan_auto_stall"); 00038 // tapi.unsetDebugOption("scan_error_trap"); 00039 // tapi.unsetDebugOption("scan_step_mode"); 00040 // tapi.unsetDebugOption("scan_rod_mode_bits"); 00041 00042 }