Closedown

This commit is contained in:
sfop
2016-08-30 17:19:09 +02:00
parent fd12166098
commit 72ce3d3f1c
3 changed files with 11 additions and 9 deletions
+5 -4
View File
@@ -45,9 +45,9 @@ if (use_bpm):
multiple_background = False
else:
latch = True
if get_device("image_stats") is None:
print "Instantiating camtool"
add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True)
#if get_device("image_stats") is None:
print "Instantiating camtool"
add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True)
if (latch):
image_stats.start()
#add_device(ImageStats("image_stats", get_simulated_source(image)), True)
@@ -95,7 +95,8 @@ try:
sensors.append(image_stats.image)
r = lscan(gun_solenoid, sensors , I1, I2, dI, settling_time, before_read = before_sample, after_read = after_sample)
finally:
laser_off()
#laser_off()
pass
image_stats.stop()
+5 -4
View File
@@ -44,9 +44,9 @@ if (use_bpm):
multiple_background = False
else:
latch = True
if get_device("image_stats") is None:
print "Instantiating camtool"
add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True)
#if get_device("image_stats") is None:
print "Instantiating camtool"
add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = latch, camera = "SINEG01-DSCR190"), True)
if (latch):
image_stats.start()
#add_device(ImageStats("image_stats", get_simulated_source(image)), True)
@@ -94,7 +94,8 @@ try:
sensors.append(image_stats.image)
r = lscan(gun_phase, sensors , phi1, phi2, dphi, settling_time, before_read = before_sample, after_read = after_sample)
finally:
laser_off()
pass
#laser_off()
image_stats.stop()