Script execution

This commit is contained in:
sfop
2016-08-30 15:38:11 +02:00
parent 6d66dbdf6d
commit ae60192104
+3 -3
View File
@@ -141,7 +141,7 @@ class CamTool(DeviceBase):
if timestamp != val:
print "New timestamp: ", val
self.setCache(val)
break
return
#if self.latch:
# self.cam_latch.write(1)
time.sleep(0.001)
@@ -194,7 +194,7 @@ class CamTool(DeviceBase):
self.bg_capture_remain.close()
#self.image.close()
"""
if __name__ == "__builtin__":
camera_tool = CamTool("camtool", prefix = "SINEG01-DSCR190:", latch = False, camera = "SINEG01-DSCR190")
add_device(camera_tool, True)
@@ -210,4 +210,4 @@ if __name__ == "__builtin__":
#camera_tool.enableBackground(True)
#camera_tool.capture()
#print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()
"""