######################################## Extracting recorded data for fringe test ######################################## -------------- on pv-mark5c-1 -------------- - make sure that drs is running - run: drs_client > scan_check? will output something like: !scan_check ? 0 : 1 : scan1 : mark5b : 0 : 2013078101247 : 3.78890625(s) : 2048 : 0 ; select the scan that you are interested and select it by issuing: > scan_set=1 then > scan_set? will output something like: !scan_set? 0 : EXP_ST_scan1 : 0 : 971511936 ; last two numbers are the start and stop bytes of the scan calculate desired start and stop bytes: !scan_set? 0 : EXP_ST_scan1 : 1971511936 : 9971511936 ; say you want to extract +10sec of data starting at +5s from the scan start: 10s * 2x10⁹ bit/s / 8bit = 2500000000 bytes 5s * 2x10⁹ bit/s / 8bit = 1250000000 bytes => start byte = startbyte_of_scan + start_offset = 1971511936 + 2500000000 = 4471511936 stop byte = start byte + duration = 4471511936 + 1250000000 = 5721511936 > disk2file=filename:4471511936:5721511936 will write filename in /home/oper/ when copying has finished end drs_client (^C) -------------- on pv-mark5b-1 -------------- - make sure dimino is running - run tstdimino > scan_check? !scan_check? 0 : 1 : test_pl_no0001 : - : 366 : 2013y074d10h00m01.0000s : 419.0s : 2048.000 : 0 ; > scan_set=test_pl_no0001:+10s:+5s will select +5s of data from scan test_pl_no0001 starting +10s from scan start > scan_check? !scan_check? 0 : 1 : test_pl_no0001 : - : 366 : 2013y074d10h00m06.0000s : 10.0s ? : 2048.000 : 0 : E ; check that start and duration are what you wanted to set > disk2file= will write file in /home/oper/ when copying has finished end tstdimino (^C)