""" Continuous 1D Manipulator scan, Keithley detection only set manipulator scan parameters below. the motor speed is determined from the STEP parameter and the step_time. note that the motors have a limited speed range! """ import math MOTORS = (ManipulatorY) RANGE = (0.3, -1.3) STEP = 0.0010 SPEED = 0.0105 SENSORS = (SampleCurrent, RefCurrent, MachineCurrent) # --- do not edit below --- RELATIVE = False LATENCY = 0.0 ZIGZAG = False ENDSCAN = False step_time = 0.1 fly_time = abs((RANGE[1] - RANGE[0]) / SPEED) STEPS = int(fly_time / step_time) + 1 print "scan time: ", fly_time cscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, time=fly_time, check_positions = False)