From e56d4256bc227d9c0714328b4f56dfd23c4b7e45 Mon Sep 17 00:00:00 2001 From: x07maop Date: Wed, 27 May 2015 14:46:19 +0200 Subject: [PATCH] Script execution --- config/plugins.properties | 2 ++ script/EnergyScan.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 config/plugins.properties create mode 100644 script/EnergyScan.py diff --git a/config/plugins.properties b/config/plugins.properties new file mode 100644 index 0000000..7f8aace --- /dev/null +++ b/config/plugins.properties @@ -0,0 +1,2 @@ +#Wed May 27 14:08:50 CEST 2015 +./home/plugins/NetbeansPlugin.java=enabled diff --git a/script/EnergyScan.py b/script/EnergyScan.py new file mode 100644 index 0000000..603dcf5 --- /dev/null +++ b/script/EnergyScan.py @@ -0,0 +1,32 @@ +#Script imported from: MgE_plus.xml + +#Parameters +E1 = 1290 +E2 = 1450 + + +#Pre-actions +cawait('ACOAU-ACCU:OP-MODE', 'Light Available', type = 's') +caput('X07MA-ID:MODE', 'CIRC +') +time.sleep(1.0) +cawait('X07MA-ID:DONE', 'DONE', type = 's') +caput('X07MA-ID:ENERGY-OFFS', '-9.0') +cawait('X07MA-ID:DONE', 'DONE', type = 's') +caput('E1', E1) +caput('E2', E2) +caput('TIME', '2') +caput('FOLDER', '2015_04/20150417') +caputq('X07MA-PHS-E:GO.A', '1290') +cawait('X07MA-PHS:alldone', '1', type = 's') +time.sleep(0.5) +caput('FILE', 'MgE_plus') +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(10.0) +caput('START', '1') + +#Post-actions +cawait('START', 'STOP', type = 's') +time.sleep(2.0)