From 16b8099434402da5bd982585616e5350058e4464 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Tue, 10 May 2022 17:06:40 +0200 Subject: [PATCH] Script execution --- script/test/Nieli.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 script/test/Nieli.py diff --git a/script/test/Nieli.py b/script/test/Nieli.py new file mode 100644 index 00000000..f21b98a6 --- /dev/null +++ b/script/test/Nieli.py @@ -0,0 +1,35 @@ +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 + + """ + 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() \ No newline at end of file