diff --git a/script/camtool.py b/script/camtool.py index 586d11e..80f24d6 100644 --- a/script/camtool.py +++ b/script/camtool.py @@ -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) \ No newline at end of file +#camera_tool.enableBackground(False) + +camera_tool.capture() +print camera_tool.take(), camera_tool.com_x.read(), camera_tool.com_y.read() \ No newline at end of file