diff --git a/script/Alignment/Laser_gun_alignment.py b/script/Alignment/Laser_gun_alignment.py index e32417f..5ba6078 100755 --- a/script/Alignment/Laser_gun_alignment.py +++ b/script/Alignment/Laser_gun_alignment.py @@ -7,6 +7,16 @@ # change the phase of the gun RF # look at the centroid position (BPM or screen) downstream of the gun. +if get_context().source == CommandSource.ui: + phi1 = 20.0 + phi2 = 30.0 + dphi = 1.0 + settling_time = 0.1 + + + + + cam_x = Channel("SINEG01-DSCR190:profile.X_stats.com", alias = "cam_x") cam_y = Channel("SINEG01-DSCR190:profile.Y_stats.com", alias = "cam_y") @@ -23,10 +33,7 @@ def laser_on(): def laser_off(): caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1) -phi1 = 20.0 -phi2 = 30.0 -dphi = 1.0 -settling_time = 0.1 + # Switch off magnets mag = [ "SINEG01-MCRX120","SINEG01-MCRY120",