Script execution

This commit is contained in:
boccioli_m
2015-05-20 16:30:20 +02:00
parent 9f6e8ec20a
commit 21aa5503c8

View File

@@ -27,14 +27,14 @@ for setpoint1 in frange(0.0, 120.0, 1.0, True):
#Dimension 1
#LinearPositioner SetVA
for setpoint1 in range(0.0, 50.0):
for setpoint1 in frange(0.0, 50.0, 5.0, True):
if setpoint1 > 50.0 or setpoint1 < 0.0:
break
SetVA.put(setpoint1, timeout=None) # TODO: Set appropriate timeout
readback1 = SetVA.get()
if abs(readback1 - setpoint1) > 0.5 : # TODO: Check accuracy
raise Exception('Actor SetVA could not be set to the value ' + str(setpoint1))
for setpoint2 in frange(0.0, 20.0, 1.0, True):
for setpoint2 in range(0, 20):
#Detector time
detector1 = float(java.lang.System.currentTimeMillis())
#Detector ActualVA