This commit is contained in:
x07maop
2016-01-21 16:16:24 +01:00
parent 3d862b7e42
commit cb87684437
17 changed files with 982 additions and 57 deletions
+11 -8
View File
@@ -37,13 +37,15 @@ def wait_channel(name, value, type):
#Pre-actions
#wait_channel('ACOAU-ACCU:OP-MODE', 'Light Available', type = 's')
caput('X07MA-ID:MODE', MODE)
time.sleep(1.0)
if MODE == 'LINEAR':
caput('X07MA-ID:ALPHA', ALPHA)
wait_channel('X07MA-ID:DONE', 'DONE', type = 's')
caput('X07MA-ID:ENERGY-OFFS', OFFSET)
wait_channel('X07MA-ID:DONE', 'DONE', type = 's')
if MODE is not None:
pol_mode.write(MODE)
time.sleep(1.0)
if MODE == 'LINEAR':
pol_angle.write(ALPHA)
wait_device(pol_done,"DONE")
if OFFSET is not None:
caput('X07MA-ID:ENERGY-OFFS', OFFSET)
wait_device(pol_done,"DONE")
caput('E1', E1)
caput('E2', E2)
caput('TIME', TIME)
@@ -56,7 +58,8 @@ time.sleep(0.1)
caput('X07MA-OP-VG13:WT_SET', 'Try open')
time.sleep(5.0)
caput('X07MA-OP-VG13:WT_SET', 'Try open')
time.sleep(DELAY)
if DELAY is not None:
time.sleep(DELAY)
caput('START', '1')
#Post-actions