Script execution

This commit is contained in:
boccioli_m
2015-05-20 16:24:00 +02:00
parent 0f3fdc6ac6
commit 3f4dfddc45

View File

@@ -28,13 +28,13 @@ for setpoint1 in frange(0.0, 120.0, 1.0, True):
#Dimension 1
#LinearPositioner SetVA
for setpoint1 in frange(0.0, 50.0, 5.0, True):
if setpoint1 > 50.0 or setpoint1 < 0.0:
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, 40.0, 1.0, True):
for setpoint2 in frange(0.0, 50.0, 1.0, True):
#Detector time
detector1 = float(java.lang.System.currentTimeMillis())
#Detector ActualVA