nmask.cxx

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 = 0;
00012 // nmask.loopCalLine = 0;
00013 nmask.distSlave = 1;
00014 // nmask.debug = 0;
00015 // nmask.tim = 0;
00016 
00017  tapi.setDebugOption("calib_no_slink");
00018 
00019 // Stall histogram on first error
00020 // tapi.setDebugOption("scan_auto_stall");
00021 
00022 // Use slave 2 to trap all events in error mode
00023 // tapi.setDebugOption("scan_error_trap");
00024 
00025 // Go into step mode, step is toggled by bit 7 of MDSP diagnostic register
00026 // tapi.setDebugOption("scan_step_mode");
00027 
00028 // Use the "mode bits" in the ROD formatters not the DSP (should be faster)
00029 // tapi.setDebugOption("scan_rod_mode_bits");
00030 
00031 tapi.modifyABCDVar(11, 1.0);
00032 tapi.modifyABCDVar(13, 0.0);
00033 tapi.modifyABCDVar(14, 1.0);     // Send mask bit
00034 tapi.doScan(nmask);
00035 tapi.awaitScan();
00036 
00037 // Turn all options off afterwards
00038 // tapi.unsetDebugOption("scan_auto_stall");
00039 // tapi.unsetDebugOption("scan_error_trap");
00040 // tapi.unsetDebugOption("scan_step_mode");
00041 // tapi.unsetDebugOption("scan_rod_mode_bits");
00042 
00043 }

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