Script execution

This commit is contained in:
gac-x03da
2021-11-18 12:16:34 +01:00
parent 0c9cdaa109
commit fdfef9985e

View File

@@ -59,11 +59,11 @@ def before_pass(index, scan):
try:
#cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_read=before_readout, after_read = after_readout, before_pass = before_pass, check_positions = False)
Scienta.setGrabMode(Scienta.getGrabMode.Continuous)
Scienta.setGrabMode(Scienta.getGrabMode().Continuous)
cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_pass=before_pass, check_positions=False)
finally:
Scienta.setGrabMode(Scienta.getGrabMode.Single)
Scienta.setGrabMode(Scienta.getGrabMode().Single)
if ENDSCAN:
after_scan()