Closedown
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user