Script execution

This commit is contained in:
sfop
2016-08-24 15:26:11 +02:00
parent 17bbe4e8cc
commit 56dc5ee71d

View File

@@ -26,7 +26,7 @@ else:
centroid_excursion_plot = False
from camtool import CamTool
from ImageStats import ImageStats
from ImageStats import ImageStats, get_simulated_source
multiple_background = multiple_background and use_background
@@ -34,13 +34,16 @@ print "Parameters: ", I1, I2, dI, settling_time, plot_image, number_images, use_
plot_name = datetime.datetime.fromtimestamp(time.time()).strftime('%H%M%S')
"""
if get_device("image_stats") is None:
print "Instantiating camtool"
latch = True
add_device(CamTool("image_stats", prefix = "cam:", latch = latch, camera = "SINEG01-DSCR350"), True)
if (latch):
image_stats.start()
#add_device(ImageStats("image_stats", simulated_source), True)
"""
add_device(ImageStats("image_stats", get_simulated_source()), True)
image_stats.setNumberOfImages(max(number_images,1))
image_stats.enableBackground (use_background)
if use_background: