Closedown

This commit is contained in:
2015-12-01 11:05:44 +01:00
parent 3075751329
commit 7f3e17d86d
3 changed files with 26 additions and 14 deletions

View File

@@ -60,18 +60,18 @@ while abs(by) >= ymax :
by = bpm1.read()
print "current EBOX-POSV: " + str(by)
cur = caget('X06DA-ES-BPM1:SUM','d')
if cur > tc:
ehs = caget('X06DA-OP-ST1:OPEN_EPS','i') # make sure that shutter is open
if (ehs > 0) and (abs(by) > ymax):
if abs(by) > (50*ymax):
raise Exception ('TODO')
if cur > tc:
ehs = caget('X06DA-OP-ST1:OPEN_EPS','i') # make sure that shutter is open
if (ehs > 0) and (abs(by) > ymax):
if abs(by) > (50*ymax):
raise Exception ('TODO')
#limit mirror TRY3 movement
y3 = try3.read()
if abs(y3i - y3 - 1e-4 * round(by/1e-3)) > 0.008:
raise Exception ('Feedback trying to move mirror Y3 beyond safe limit')
try3.motor.moveRel(-1e-4 * round(by/1e-3))
print, "current X06DA-OP-MI1:TRY3", y3
time.sleep(0.25)
print "current X06DA-OP-MI1:TRY3: ", y3
time.sleep(0.25)
print "TRY3 net movement: " + str(y3i-try3.read()) #print how much TRY3 moved

View File

@@ -60,9 +60,21 @@ def fit(ydata, xdata = None):
#fit([1,2,3, 3,3,3,4,5,6,12,33,23,15,3,2,1, 1, 1, 1, 1])
#def rock(axis = th1):
# """
# TODO
# """
# run("rock", {"rock_axis":th1})
from rock import rock
def rock(axis = th1):
"""
TODO
"""
run("rock", {"rock_axis":th1})
def fbm():
"""
TODO
"""
run("fbn")
def rocknroll():
"""
TODO
"""
run("rocknroll")

View File

@@ -52,4 +52,4 @@ def rock(axis = th1, ffail = False, tt = 0.2, seti0 = False, dx = None, noref =
#rock(rock_axis)
rock(rock_axis)