xbpm1_cx = 0.0 xbpm1_cy = 0.0 # Read initial speed # xbpm1_ini_x_speed = BML_XBPM_A_TRX.getSpeed() # xbpm1_ini_y_speed = BML_XBPM_A_TRY.getSpeed() # # BML_XBPM_A_TRX.setSpeed(0.8) # BML_XBPM_A_TRY.setSpeed(0.8) # # BML_XBPM_A_TRX.move(xbpm1_cx) # BML_XBPM_A_TRY.move(xbpm1_cy) x_range = 1.8 y_range = 1.8 x_steps = 0.1 y_steps = 0.1 xmin = xbpm1_cx - x_range/2 xmax = xbpm1_cx + x_range/2 ymin = xbpm1_cy - y_range/2 ymax = xbpm1_cy + y_range/2 # # BML_XBPM_A_TRX.setSpeed(3.0) # BML_XBPM_A_TRY.setSpeed(3.0) BML_XBPM_A_TRX.move(xmin) BML_XBPM_A_TRY.move(ymin) sensors = [BML_XBPM_A_CUR_1, BML_XBPM_A_CUR_2, BML_XBPM_A_CUR_3, BML_XBPM_A_CUR_4] #detector = Keithley_2_raw result = ascan([BML_XBPM_A_TRX, BML_XBPM_A_TRY], sensors, [xmin, ymin], [xmax, ymax], [x_steps, y_steps], latency=0.2, zigzag=False) #ascan([FE_CX, FE_CY], sensors, [-1.0, 0.3], [0.0, 1.3], [0.1, 0.1], latency=0.5, zigzag=True) #ascan([FE_CX, FE_CY], sensors, [xmin, ymin], [xmax, ymax], [STEPS, STEPS], latency=0.25, zigzag=True) json_path = get_exec_pars().path bml_save_scan_settings_json(json_path) BML_XBPM_A_TRX.move(xbpm1_cx) BML_XBPM_A_TRY.move(xbpm1_cy)