Script execution

This commit is contained in:
boccioli_m
2015-06-23 11:41:31 +02:00
parent 6219e73129
commit f94f7c53c1

View File

@@ -67,7 +67,7 @@ except:
print "Unexpected error:", sys.exc_info()[0]
ret = 'Unable to create channel - ' + traceback.format_exc()
success = False
raise
raise Exception('Unable to create channel - ' + traceback.format_exc())
sys.exit()
#remove limits
@@ -85,7 +85,7 @@ start = startDefault #idInkr.get()+direction
setpoint2 = end
count = 0
for setpoint1 in range(0, loopTimes):
sleep( delayS ) # Settling time
sleep( delaySeconds ) # Settling time
#RegionPositioner idInkr
idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
readback2 = idInkr.get()