Files
x03da/script/test/Nieli.py
2022-05-10 17:07:21 +02:00

37 lines
1009 B
Python

def test():
################## THIS IS TO OPEN THE VALVES /SHUTTER
if caget('X03DA-OP-VG7:OPEN') == 'Not_Open':
print('caput('X03DA-OP-VG7:WT_SET',0)') #open ES vacuum valve
#time.sleep(0.2)
#caput('X03DA-OP-VG7:WT_SET',1) #open ES vacuum valve
else:
print('blabla')
"""
caput('X03DA-OP-ST1:WT_SET_CLOSE',0) #
caput('X03DA-OP-ST1:WT_SET_OPEN',1) # open ES Shutter
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)
############################################# """
"""
setup_live_plots(REGIONS)
task = fork(update_live_plots)
do_scan(MOTORS, POSITIONS, REGIONS, LATENCY)
finally:
caput('X03DA-OP-VG7:WT_SET',1) #close ES vacuum valve
time.sleep(0.2)
caput('X03DA-OP-VG7:WT_SET',0) #close ES vacuum valve
if CLOSE_SHUTTER_AT_END:
after_scan()