Files
x11ma/script/templates/AreaScan.py
2021-03-12 12:19:10 +01:00

28 lines
782 B
Python
Executable File

###################################################################################################
# Area Scan: Multiple positioners, each one is one dimension.
###################################################################################################
# Scan parameters
Y_start = -1
Z_start = 7.7
Y_end = 2
Z_end = 7.7
Y_steps = 150
Z_steps = 1
# NPLC (integration time) value for the Keithleys
NPLC=10
caput('X11MA-KEI10:NPLC', NPLC)
caput('X11MA-KEI11:NPLC', NPLC)
caput('X11MA-KEI12:NPLC', NPLC)
# move Y and Z motors to start position
TRY.write(Y_start)
TRZ.write(Z_start)
time.sleep(5)
# run the area scan
r1 = ascan((TRY,TRZ), (Keithley_1_raw,Keithley_2_raw,Keithley_3_raw), (Y_start,Z_start), (Y_end,Z_end), (Y_steps-1,Z_steps-1), 1.0, False, 1, True)