include chip_def.tcs // clear the ni-input in FPGA write fpga2, 0x4480, 0 // pretrigger write fpga2, 0x4008, 1 wait 50; // clear write fpga2, 0x4008, 2 // number of 16-bit words expect fpga2, 0x4480, (2*(nchips*nwords*4+4+4)-1) | ( (2*(nchips*nwords*4+4+4)-1) << 12); readseq fpga2, 0x4800, nchips*nwords*4+4+4; // read from DBANK readseq dut, 0xF000, nwords; readseq dut, 0xF040, nwords; readseq dut, 0xF080, nwords; readseq dut, 0xF0C0, nwords; // next start word for PSRG read dut, 0xF03F read dut, 0xF07F read dut, 0xF0BF read dut, 0xF0FF