Script execution

This commit is contained in:
gac-x03da
2018-04-17 18:34:26 +02:00
parent dc0762ab83
commit b394ae6ebd

View File

@@ -15,7 +15,8 @@ SENSORS (list of devices)
THETA_RANGE = (-9.0, 81.0)
THETA_STEP = 1.0
PHI_RANGE = (-160.0, +160.0)
PHI_RANGE = (-40.0, +40.0)
#PHI_RANGE = (-160.0, +160.0)
PHI_STEP = 40.0
LATENCY = 0.0
@@ -35,7 +36,7 @@ set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
time1 = time.time()
trig_scienta()
time2 = time.time()
scienta_time = (time2 - time1) + 1.0
scienta_time = (time2 - time1)
print "scienta_time: ", scienta_time
# time for one theta scan in seconds
@@ -58,7 +59,7 @@ def before_pass(index, scan):
try:
cscan(MOTORS, SENSORS, THETA_RANGE[0], THETA_RANGE[1], THETA_NSTEPS - 1, time=theta_time, passes=len(phi_positions), zigzag=ZIGZAG, before_read=before_readout, after_read = after_readout, before_pass = before_pass)
cscan(MOTORS, SENSORS, THETA_RANGE[0], THETA_RANGE[1], THETA_NSTEPS - 1, time=theta_time, passes=len(phi_positions), zigzag=ZIGZAG, before_read=before_readout, after_read = after_readout, before_pass = before_pass, check_positions = False)
finally:
if ENDSCAN: