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