Script execution
This commit is contained in:
@@ -49,12 +49,13 @@ class CamTool(DeviceBase):
|
||||
self.num_images = 1
|
||||
self.image = CamToolImage(self)
|
||||
set_device_alias(self.image, name + " image")
|
||||
|
||||
|
||||
self.com_x_samples = [1.0,2.0, 3.0]
|
||||
class CamToolComX(Readable):
|
||||
def read(self):
|
||||
def read(self):
|
||||
print dir(self)
|
||||
return mean(self.com_x_samples)
|
||||
self.com_x_mean = CamToolComX()
|
||||
self.com_x_mean.com_x_samples = [1.0,2.0, 3.0]
|
||||
self.com_x_mean = CamToolComX()
|
||||
set_device_alias(self.com_x_mean, name + " com x mean")
|
||||
|
||||
def doInitialize(self):
|
||||
@@ -125,7 +126,7 @@ class CamTool(DeviceBase):
|
||||
|
||||
if __name__ == "__builtin__":
|
||||
camera_tool = CamTool("camtool")
|
||||
|
||||
print camtool.com_x_mean.read()
|
||||
camera_tool.enableBackground(False)
|
||||
camera_tool.enableBackground(True)
|
||||
camera_tool.captureBackground(5)
|
||||
|
||||
Reference in New Issue
Block a user