Script execution

This commit is contained in:
sfop
2016-06-21 11:38:28 +02:00
parent 9ea61c1a18
commit 334e48cfe7

View File

@@ -15,13 +15,14 @@ import ch.psi.utils.Convert.toBidimensional as mono_to_bidi
I1 = 20.0
I2 = 30.0
I2 = 50.0
dI = 1.0
settling_time = 0.1
plot_image = False
number_backgrounds = 0
number_images = 1
plot_name = datetime.datetime.fromtimestamp(time.time()).strftime('%H%M%S')
cam_x = Channel("SINEG01-DSCR190:profile.X_stats.com", alias = "cam_x")
cam_y = Channel("SINEG01-DSCR190:profile.Y_stats.com", alias = "cam_y")
@@ -104,8 +105,8 @@ finally:
laser_off()
# take the result of the scan and do the plots
p = plot(r.getReadable(1), xdata=r.getReadable(0), title = "Centroid excursion")[0]
#add_convex_hull_plot ("Centroid excursion", r.getReadable(0),r.getReadable(1), "Name", False, (0,cam_img._width), (0,cam_img._height))
#p = plot(r.getReadable(1), xdata=r.getReadable(0), title = "Centroid excursion")[0]
add_convex_hull_plot ("Centroid excursion", r.getReadable(0),r.getReadable(1), plot_name, False, (0,cam_img._width), (0,cam_img._height))
# save the entry in the logbook
msg = str(r)