Script execution

This commit is contained in:
sfop
2016-06-21 09:41:46 +02:00
parent 4c9e1616ab
commit 4fe9ab4a7a

View File

@@ -16,9 +16,9 @@ import ch.psi.utils.Convert.toBidimensional as mono_to_bidi
I_set = Channel("SINEG01-MSOL130:I-SET", alias = "I_set");
I_get = Channel("SINEG01-MSOL130:I-READ", alias = "I_get")
# cam_x, cam_y = ... # some camtool command / channel?
bpm_x = Channel("SINEG01-DBPM340:X1")
bpm_y = Channel("SINEG01-DBPM340:Y1")
#bpm_x = Channel("SINEG01-DBPM340:X1")
#bpm_y = Channel("SINEG01-DBPM340:Y1")
cam_x = Channel("SINEG01-DSCR190:profile.X_stats.com", alias = "cam_x")
cam_y = Channel("SINEG01-DSCR190:profile.Y_stats.com", alias = "cam_y")
@@ -100,8 +100,8 @@ finally:
laser_off()
# take the result of the scan and do the plots
p = plot(r.getReadable(2), xdata=r.getReadable(1), title = "Centroid excursion")[0]
#add_convex_hull_plot ("Centroid excursion", r.getReadable(1),r.getReadable(2), "Name")
#p = plot(r.getReadable(2), xdata=r.getReadable(1), title = "Centroid excursion")[0]
add_convex_hull_plot ("Centroid excursion", r.getReadable(1),r.getReadable(2), "Name")
# save the entry in the logbook
msg = str(r)