Closedown
This commit is contained in:
@@ -14,7 +14,12 @@ do_elog = True
|
||||
dry_run = False
|
||||
is_panel = get_exec_pars().source != CommandSource.ui #Must be checked before callin "run"
|
||||
camera_name = "SINEG01-DSCR190"
|
||||
bpm_name = "SINEG01-DBPM340"
|
||||
use_good_region=False
|
||||
magnets = ["SINEG01-MCRX120","SINEG01-MCRY120",
|
||||
"SINEG01-MQUA140","SINEG01-MQUA150",
|
||||
"SINEG01-MCRX160","SINEG01-MCRY160",
|
||||
"SINEG01-MCRX180","SINEG01-MCRY180"]
|
||||
|
||||
if not is_panel:
|
||||
source = "server" # "server", "camtool", "bpm" or "direct"
|
||||
@@ -55,7 +60,11 @@ print "Parameters: ", I1, I2, dI, settling_time, plot_image, number_images, use_
|
||||
|
||||
setup_camera_scan()
|
||||
|
||||
#switch_off_magnets()
|
||||
if not dry_run:
|
||||
#magnet_values = []
|
||||
#for magnet in magnets:
|
||||
# magnet_values.append(caget (magnet + ":I-SET"))
|
||||
switch_off_magnets( magnets )
|
||||
|
||||
# add here gun phase setting see wiki page
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
# Procedure:
|
||||
# switch off all the magnets between the gun solenoid and the screen or BPM used for the measurement
|
||||
# change the current of the gun soleoid
|
||||
# cycle the gun soleoid
|
||||
# increase gun phase by 60 deg - RF focussing
|
||||
# look at the centroid position (BPM or screen) downstream of the gun.
|
||||
|
||||
import datetime
|
||||
@@ -14,17 +15,22 @@ do_elog = True
|
||||
dry_run = False
|
||||
is_panel = get_exec_pars().source != CommandSource.ui #Must be checked before callin "run"
|
||||
camera_name = "SINEG01-DSCR190"
|
||||
bpm_name = "SINEG01-DBPM340"
|
||||
use_good_region=False
|
||||
magnets = ["SINEG01-MCRX120","SINEG01-MCRY120",
|
||||
"SINEG01-MQUA140","SINEG01-MQUA150",
|
||||
"SINEG01-MCRX160","SINEG01-MCRY160",
|
||||
"SINEG01-MCRX180","SINEG01-MCRY180"]
|
||||
|
||||
|
||||
if not is_panel:
|
||||
source = "server" # "server", "camtool", "bpm" or "direct"
|
||||
phi1= 95.0
|
||||
phi2 = 100.0
|
||||
phi1= 105.0
|
||||
phi2 = 115.0
|
||||
dphi = 1.0
|
||||
settling_time = 0.1
|
||||
settling_time = 0.15
|
||||
plot_image = False
|
||||
number_images = 5
|
||||
number_images = 2
|
||||
use_background = True
|
||||
multiple_background = False
|
||||
number_backgrounds = 5
|
||||
@@ -55,8 +61,12 @@ print "Parameters: ", phi1, phi2, dphi, settling_time, plot_image, number_images
|
||||
|
||||
|
||||
setup_camera_scan()
|
||||
|
||||
#switch_off_magnets()
|
||||
|
||||
if not dry_run:
|
||||
#magnet_values = []
|
||||
#for magnet in magnets:
|
||||
# magnet_values.append(caget (magnet + ":I-SET"))
|
||||
switch_off_magnets( magnets )
|
||||
|
||||
# add here gun phase setting see wiki page
|
||||
|
||||
@@ -107,9 +117,9 @@ set_attribute(path, "Plot index", centroid_plot_index)
|
||||
if do_elog:
|
||||
if get_option("Generated data file:\n" + get_exec_pars().path +"\n\n" + "Save to ELOG?", "YesNo") == "Yes":
|
||||
log_msg = "Data file: " + get_exec_pars().path
|
||||
log_msg = log_msg + "\nI1: " + str(I1)
|
||||
log_msg = log_msg + "\nI2: " + str(I2)
|
||||
log_msg = log_msg + "\ndI: " + str(dI)
|
||||
log_msg = log_msg + "\nphi1: " + str(phi1)
|
||||
log_msg = log_msg + "\nphi2: " + str(phi2)
|
||||
log_msg = log_msg + "\ndphi: " + str(dphi)
|
||||
log_msg = log_msg + "\nSettling time: " + str(settling_time)
|
||||
log_msg = log_msg + "\nImages: " + str(number_images)
|
||||
log_msg = log_msg + "\nBackground: enabled=" + str(use_background) + " multiple=" + str(multiple_background) + " number=" + str(number_backgrounds)
|
||||
|
||||
Reference in New Issue
Block a user