Closedown

This commit is contained in:
gac-x03da
2020-03-10 12:25:26 +01:00
parent ea32b0064e
commit 254a8458ec
5 changed files with 13 additions and 10 deletions

View File

@@ -17,16 +17,19 @@ set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
try:
if FLY_SCAN:
print "start ", STEPS
# time per scienta acquisition in seconds
time1 = time.time()
trig_scienta()
time.sleep(0.2)
time2 = time.time()
scienta_time = (time2 - time1)
print "scienta time: ", scienta_time
if isinstance(STEPS,int):
raise Exception ("Fly Scan must define step size, and not number of steps")
STEP = STEPS
STEP = STEPS[0]
SPEED = STEP / scienta_time
fly_time = (RANGE[1] - RANGE[0]) / SPEED
STEPS = int(fly_time / scienta_time) + 1