Closedown

This commit is contained in:
sfop
2016-08-23 14:08:52 +02:00
parent 107c2207ce
commit 26c1fce46f
+6 -1
View File
@@ -47,8 +47,10 @@ class CamTool(DeviceBase):
self.cam_latch.write(1)
self.waitForChannel(self.data_prefix + "timestamp",20)
else:
print "Ok"
self.cam_run.write(1)
self.waitForChannel(self.data_prefix + "timestamp",20)
#self.capture()
self.stop()
self.timestamp = Channel(self.data_prefix + "timestamp",type = 'l', alias = name + " timestamp") #[D1, D2, ...]
self.com_x = Channel(self.data_prefix + "x_stats.com", alias = name + " com x")
@@ -195,4 +197,7 @@ if __name__ == "__builtin__":
from camtool import CamTool
camera_tool = CamTool("camtool", latch = False)
add_device(camera_tool, True)
#camera_tool.enableBackground(False)
#camera_tool.enableBackground(False)
camera_tool.capture()
print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read()