include ../scsn_ids.tcs include chip_def.tcs include main.tcs // here the reset output config of the fpga1 write fpga1, 0x6000, (f_false_bit << 0) | (f_parit_bit << 4) | (rst_inv << 8) | (rst_opend << 9); write fpga1, 0x6001, (xor_mask << 20) | (and_mask << 10) | or_mask; expect fpga1, 0x6001, (xor_mask << 20) | (and_mask << 10) | or_mask; //pretrigger 5, go to acq write fpga2, 0x4008, 5 write fpga2, 0x400C, L0time; write fpga2, 0x400D, L2time; write fpga2, 0x400E, L2time; write fpga2, 0x400F, L2time+1000; // NI control time