Script execution
This commit is contained in:
+10
-7
@@ -26,7 +26,7 @@ if OFFSET is not None:
|
||||
caputq('X07MA-PC:CSCALER.INPB', '1')
|
||||
if RAMP_RATE is not None:
|
||||
ramp_rate.write(RAMP_RATE)
|
||||
ramp_rate.waitValue(RAMP_RATE,10000)
|
||||
ramp_rate.waitInPosition(RAMP_RATE,10000)
|
||||
|
||||
|
||||
|
||||
@@ -58,16 +58,19 @@ print "Set end field"
|
||||
field.write(END_FIELD) #caputq('X07MA-PC-PS2:M:GO.A', END_FIELD)
|
||||
|
||||
|
||||
|
||||
if len (ENERGIES)==1:
|
||||
energy.write(setpoint2)
|
||||
sleep( ENERGY_CHANGE_SLEEP ) # Settling time
|
||||
|
||||
index = 0
|
||||
while(True):
|
||||
#Dimension 2START_FIELD = -0.2
|
||||
#ArrayPositioner Energy
|
||||
#ArrayPositioner Energy
|
||||
for setpoint2 in ENERGIES:
|
||||
#Energy.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
|
||||
energy.write(setpoint2)
|
||||
sleep( ENERGY_CHANGE_SLEEP ) # Settling time
|
||||
if len (ENERGIES)>1:
|
||||
#Energy.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
|
||||
energy.write(setpoint2)
|
||||
sleep( ENERGY_CHANGE_SLEEP ) # Settling time
|
||||
|
||||
#TODO: change to Controlled variable?
|
||||
readback2 = energy_readback.read() #EnergyReadback.get()
|
||||
@@ -107,5 +110,5 @@ scan.end()
|
||||
|
||||
if RAMP_RATE is not None:
|
||||
ramp_rate.write(2.0)
|
||||
time.sleep(5.0)
|
||||
ramp_rate.waitInPosition(2.0,10000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user