Script execution

This commit is contained in:
sfop
2016-08-24 15:10:39 +02:00
parent e7b8505657
commit 71ee716dfa

View File

@@ -33,7 +33,9 @@ print "Parameters: ", I1, I2, dI, settling_time, plot_image, number_images, use_
plot_name = datetime.datetime.fromtimestamp(time.time()).strftime('%H%M%S')
add_device(CamTool("image_stats", prefix = "cam:", latch = True, camera = "SINEG01-DSCR350"), True)
if get_device("image_stats") is None:
print "Instantiating camtool"
add_device(CamTool("image_stats", prefix = "cam:", latch = True, camera = "SINEG01-DSCR350"), True)
#add_device(ImageStats("image_stats", simulated_source), True)
image_stats.setNumberOfImages(max(number_images,1))
image_stats.enableBackground (use_background)