Script execution
This commit is contained in:
@@ -34,12 +34,13 @@ for setpoint1 in frange(0.0, 50.0, 2.0, True):
|
||||
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))
|
||||
sleep( 1.0 ) # Settling time
|
||||
#Detector time
|
||||
detector1 = float(java.lang.System.currentTimeMillis())
|
||||
#Detector ActualVA
|
||||
detector2 = ActualVA.get()
|
||||
scan.append ([setpoint1], [readback1], [detector1, detector2])
|
||||
for setpoint1 in frange(0.0, 10.0, 1.0, True):
|
||||
sleep( 0.1 ) # Settling time
|
||||
#Detector time
|
||||
detector1 = float(java.lang.System.currentTimeMillis())
|
||||
#Detector ActualVA
|
||||
detector2 = ActualVA.get()
|
||||
scan.append ([setpoint1], [readback1], [detector1, detector2])
|
||||
|
||||
#Closing channels
|
||||
SetVA.close()
|
||||
|
||||
Reference in New Issue
Block a user