From 90bb2ce531c1fcb68721fde92e0d14e6cd72b44d Mon Sep 17 00:00:00 2001 From: x07maop Date: Sat, 26 Nov 2016 15:37:07 +0100 Subject: [PATCH] Script execution --- script/jan/hyst_Fe_singleenergy-edge.py | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 script/jan/hyst_Fe_singleenergy-edge.py diff --git a/script/jan/hyst_Fe_singleenergy-edge.py b/script/jan/hyst_Fe_singleenergy-edge.py new file mode 100644 index 0000000..056f07b --- /dev/null +++ b/script/jan/hyst_Fe_singleenergy-edge.py @@ -0,0 +1,37 @@ +off_cplus = -0.25 +off_cminus = 1.75 +rrate = 1.0 # ramping speed of mag field + +e1 = 706.85 # energy + +B1 = 5.0 # field span +B2 = -B1 +nr_loops = 1 # number of loops to acquire + + +open_valve() + +loop_count = 0 +while loop_count < nr_loops: + + set_pol_cplus(offset = off_cplus) + set_file('Fe_hyst_plus') + hyst_cont(field_x, B1, B2, rrate, [e1]) + + set_pol_cplus(offset = off_cplus) + set_file('Fe_hyst_plus') + hyst_cont(field_x, B2, B1, rrate, [e1]) + + set_pol_cminus(offset = off_cminus) + set_file('Fe_hyst_minus') + hyst_cont(field_x, B1, B2, rrate, [e1]) + + set_pol_cminus(offset = off_cminus) + set_file('Fe_hyst_minus') + hyst_cont(field_x, B2, B1, rrate, [e1]) + + loop_count = loop_count + 1 + print "Loop # ",loop_count," finished." + +close_valve() +