Closedown

This commit is contained in:
gac-x03da
2022-02-16 15:17:23 +01:00
parent e476a0cd24
commit e95f7f7176
4 changed files with 25 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ START_POS = 0.0
# coarse scan range = estimated size of the sample + margins
COARSE_RANGE = 10.0
# scienta dwell time (fixed mode)
DWELL_TIME = 0.5
DWELL_TIME = 0.1
# --- do not edit below ---
@@ -25,15 +25,23 @@ ZIGZAG = False
ENDSCAN = False
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent)
MOTORS = ManipulatorY
MOTORS = (ManipulatorY)
RANGE = (START_POS + COARSE_RANGE / 2., START_POS - COARSE_RANGE / 2.)
Scienta.setExposure(DWELL_TIME)
scienta_time = 3.25 + DWELL_TIME
print "scienta time: ", scienta_time
#scienta_time = DWELL_TIME + 0.1
# time per scienta acquisition in seconds
trig_scienta()
time1 = time.time()
trig_scienta()
time.sleep(0.01)
time2 = time.time()
scienta_time = (time2 - time1) + 1.
print "step time: ", scienta_time
STEP = 0.25
SPEED = STEP / scienta_time
SPEED = MOTORS[0].getSpeed()
fly_time = abs(RANGE[1] - RANGE[0]) / SPEED
STEPS = int(fly_time / scienta_time) + 1