Script execution
This commit is contained in:
+5
-2
@@ -1,5 +1,5 @@
|
||||
#$import ch.psi.pshell.device.DeviceBase as DeviceBase
|
||||
#from startup import *
|
||||
#import ch.psi.pshell.device.DeviceBase as DeviceBase
|
||||
from startup import *
|
||||
|
||||
class CamTool(DeviceBase):
|
||||
def __init__(self, name, prefix = "cam:", latch = False):
|
||||
@@ -46,6 +46,9 @@ class CamTool(DeviceBase):
|
||||
while(timestamp == self.timestamp.read()):
|
||||
time.sleep(0.001)
|
||||
|
||||
def doUpdate(self):
|
||||
self.capture()
|
||||
|
||||
def enableBackground(self, value):
|
||||
self.cam_bg_en.write(1 if value else 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user