Script execution

This commit is contained in:
gac-x03da
2023-09-14 16:27:28 +02:00
parent 5c33a12052
commit efef9fbee2

View File

@@ -21,7 +21,7 @@ SENSORS = (Counts, Scienta.dataMatrix, Scienta.spectrum, SampleCurrent, RefCurre
STARTPOS = -15.
ENDPOS = +15.
# if integer, actual number of positions will be +1!
STEPS = 1
STEPS = 1.
RELATIVE = False
LATENCY = 0.0
ENDSCAN = True
@@ -54,9 +54,9 @@ try:
print "speed: ", SPEED
print "scan time: ", fly_time
cscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, fly_time, RELATIVE, before_read=before_readout, after_read = after_readout, check_positions = False)
cscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, fly_time, RELATIVE, before_read=before_readout, after_read = after_readout, check_positions = False)
else:
lscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()