Script execution
This commit is contained in:
@@ -1,30 +1,39 @@
|
||||
off_cplus = -6.5
|
||||
off_cminus = -2.5
|
||||
rrate = 2.0
|
||||
e1 = 1290.2
|
||||
e2 = 1283.0
|
||||
rrate = 2.0 # ramping speed of mag field
|
||||
e1 = 1290.2 # energy 1 (usually on edge)
|
||||
e2 = 1283.0 # energy 2 (pre edge)
|
||||
|
||||
B1 = 4.0 # field span
|
||||
B2 = -B1
|
||||
nr_loops = 3 # number of loops to acquire
|
||||
|
||||
print "TEST Loop # ",nr_loops," finished."
|
||||
|
||||
|
||||
open_valve()
|
||||
|
||||
set_pol_cplus(offset = off_cplus)
|
||||
set_file('Dy_hyst_plus')
|
||||
hyst_cont(field_x, 6.8, -6.8, rrate, [e1, e2])
|
||||
loop_count = 0
|
||||
while loop_count < nr_loops:
|
||||
|
||||
set_pol_cminus(offset = off_cminus)
|
||||
set_file('Dy_hyst_minus')
|
||||
hyst_cont(field_x, -6.8, 6.8, rrate, [e1, e2])
|
||||
|
||||
set_pol_cminus(offset = off_cminus)
|
||||
set_file('Dy_hyst_minus')
|
||||
hyst_cont(field_x, 6.8, -6.8, rrate, [e1, e2])
|
||||
|
||||
set_pol_cplus(offset = off_cplus)
|
||||
set_file('Dy_hyst_plus')
|
||||
hyst_cont(field_x, -6.8, 6.8, rrate, [e1, e2])
|
||||
set_pol_cplus(offset = off_cplus)
|
||||
set_file('Dy_hyst_plus')
|
||||
hyst_cont(field_x, B1, B2, rrate, [e1, e2])
|
||||
|
||||
set_pol_cminus(offset = off_cminus)
|
||||
set_file('Dy_hyst_minus')
|
||||
hyst_cont(field_x, B2, B1, rrate, [e1, e2])
|
||||
|
||||
set_pol_cminus(offset = off_cminus)
|
||||
set_file('Dy_hyst_minus')
|
||||
hyst_cont(field_x, B1, B2, rrate, [e1, e2])
|
||||
|
||||
set_pol_cplus(offset = off_cplus)
|
||||
set_file('Dy_hyst_plus')
|
||||
hyst_cont(field_x, B2, B1, rrate, [e1, e2])
|
||||
|
||||
loop_count = loop_count + 1
|
||||
print "Loop # ",loop_count," finished."
|
||||
|
||||
close_valve()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user