Script execution

This commit is contained in:
sfop
2016-06-14 15:45:59 +02:00
parent 1aa0cad717
commit 2adc6d9450

View File

@@ -14,6 +14,9 @@ I_read = Channel("SINEG01-MSOL130:I-READ")
bpm_x = Channel("SINEG01-DBPM340:X1")
bpm_y = Channel("SINEG01-DBPM340:Y1")
cam_x = Channel("SINEG01-DSCR190:profile.X_stats.com")
cam_y = Channel("SINEG01-DSCR190:profile.Y_stats.com")
def ccr(mag):
n = 1
while n > 0:
@@ -46,7 +49,7 @@ for m in mag:
# Scan using the screen
#r = lscan(I_set, [I_read, cam_x, cam_y], I1, I2, dI, 1.0, passes = 2, zigzag = True)
# Scan using the BPM
r = lscan(I_set, [I_get, bpm_x, bpm_y], I1, I2, dI, 1.0, before_read = laser_on(), after_read = laser_off())
r = lscan(I_set, [I_get, cam_x, cam_y], I1, I2, dI, 1.0, before_read = laser_on, after_read = laser_off)
# take the result of the scan and do the plots
plot(r.getReadable(2), xdata=r.getReadable(1), title = "Centroid excursion")