# Support script for repeatability tests # Moves the system to the position to tare it import scansupport as ss from repeat_config import * ss.motorPositions() ss.commandMotor(0.0, repeat_tare_pos)
def commandMotor(x, y): if scanconfig.cte_verbose: print("Command Motor X: " + str(x) + " Y: " + str(y)) return sws.commandMotor(x, y)
# -*- coding: utf-8 -*- # Forces the motors to move the window to the center position of the FoV import scanconfig import scansupport as sws #### START EXECUTION ###### if (scanconfig.cte_disable_motors_first): sws.disableMotors() print("Check initial motor positions") sws.motorPositions() if (scanconfig.cte_enable_motors_first): sws.enableMotors() # Calculate the center position of the window over the FoV lsx = 0.0 lsy = 0.0 print("lsx: " + str(lsx)) print("lsy: " + str(lsy)) sws.commandMotor(lsx, lsy) print("Check motor positions after resets") sws.motorPositions() sws.motorClose()
# Forces the motors to move the window to the center position of the FoV import scanconfig import scansupport as sws #### START EXECUTION ###### if (scanconfig.cte_disable_motors_first): sws.disableMotors() print("Check initial motor positions") sws.motorPositions() if (scanconfig.cte_enable_motors_first): sws.enableMotors() # Calculate the center position of the window over the FoV lsx = 0.0 lsy = 0.0 print("lsx: "+str(lsx)) print("lsy: "+str(lsy)) sws.commandMotor(lsx, lsy) print("Check motor positions after resets") sws.motorPositions() sws.motorClose()
import sys import scansupport as ss print 'Moving motor to X, Y (in mm)' print 'Number of arguments:', len(sys.argv), 'arguments.' print 'Argument List:', str(sys.argv) if len(sys.argv) > 2: x = float(sys.argv[1])/1000.0 y = float(sys.argv[2])/1000.0 else: x = 0.0 / 1000.0 y = 0.050 / 1000.0 # We use this command to freely move the window in 2D (in meters) while compensation is calculated print 'x (in meters) is ', x print 'y (in meters) is ', y import checkpos ss.commandMotor(x, y)
def commandMotor(x, y): if scanconfig.cte_verbose: print ("Command Motor X: " + str(x) + " Y: " + str(y)) return sws.commandMotor(x, y)
# Support script for repeatability tests # Moves system to "prefix" position import scansupport as ss from repeat_config import * ss.motorPositions() ss.commandMotor(0.0, repeat_prefix_pos)
import sys import scansupport as ss print 'Moving motor to X, Y (in mm)' print 'Number of arguments:', len(sys.argv), 'arguments.' print 'Argument List:', str(sys.argv) if len(sys.argv) > 2: x = float(sys.argv[1]) / 1000.0 y = float(sys.argv[2]) / 1000.0 else: x = 0.0 / 1000.0 y = 0.050 / 1000.0 # We use this command to freely move the window in 2D (in meters) while compensation is calculated print 'x (in meters) is ', x print 'y (in meters) is ', y import checkpos ss.commandMotor(x, y)