From 49aef5c641a914dcae5570004afea55d8682e2c3 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Thu, 18 Nov 2021 12:59:49 +0100 Subject: [PATCH] Script execution --- script/ManipulatorYZFlyScan.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/ManipulatorYZFlyScan.py b/script/ManipulatorYZFlyScan.py index 03f7b4ec..a18fa227 100644 --- a/script/ManipulatorYZFlyScan.py +++ b/script/ManipulatorYZFlyScan.py @@ -7,11 +7,11 @@ set analyser parameters (fixed mode) separately! import math -RANGE_Z = (114.6, 115.6) +RANGE_Z = (114.9, 115.9) # actual number of positions will be +1! STEPS_Z = 10 -RANGE_Y = (-1., 1.) +RANGE_Y = (-1.5, 1.5) # speed = distance_per_point / (dwell_time + 0.1) # minimum 0.01, maximum 0.125 mm/s SPEED_Y = 0.125 @@ -55,13 +55,14 @@ def before_pass(index, scan): print "z = ", z ManipulatorZ.waitValueInRange(z, 1.0, 100) - +DIAGS = [ManipulatorZ] + try: #cscan(dMOTORS, 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.start() - 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) + 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, diags=DIAGS) Scienta.stop() finally: