Script execution

This commit is contained in:
gac-x03da
2018-09-19 13:20:27 +02:00
parent 089f8f9c51
commit dda452a7ff

View File

@@ -1,10 +1,9 @@
Estart = 1260.0
Estart = 1290.0
Estop = 1292.0
OTFtime = 1.0
Eph.write(Estart)
while True:
erbk = round(MonoEnergy.read(),1)
if abs(erbk - Estart) < 0.3:
@@ -14,7 +13,6 @@ while True:
time.sleep(3.0)
print "done setting energy."
time.sleep(600)
caput('X03DA-OP-VG7:WT_SET',2) #open ES vacuum valve
caput('X03DA-OP-ST1:WT_SET_OPEN',1) # open ES Shutter
@@ -25,6 +23,8 @@ caput('X03DA-OTF:E1', Estart)
caput('X03DA-OTF:E2', Estop)
caput('X03DA-OTF:TIME',OTFtime)
print "launch OTF scan."
caput('X03DA-OTF:RUN','START')
while True: