diff --git a/script/users/X-Treme users/launchOTF.py b/script/users/X-Treme users/launchOTF.py index 95840d93..d9f8bfa6 100644 --- a/script/users/X-Treme users/launchOTF.py +++ b/script/users/X-Treme users/launchOTF.py @@ -22,7 +22,16 @@ if caget('X03DA-OP-VG7:OPEN') == 'Not_Open': caput('X03DA-OP-ST1:WT_SET_CLOSE',0) # caput('X03DA-OP-ST1:WT_SET_OPEN',1) # open ES Shutter -time.sleep(5.0) + +print "check that shutter is open..." +while True: + if caget('X03DA-OP-ST1:OPEN') == 'Open': + break + time.sleep(0.5) + +print "OK." + +time.sleep(3.0) ############################################# caput('X03DA-OTF:E1', Estart)