Script execution
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
class Mythen(DeviceBase):
|
||||
def __init__(self, name, prefix):
|
||||
.__init__(self, name)
|
||||
DeviceBase.__init__(self, name)
|
||||
self.prefix = prefix
|
||||
|
||||
def set_acquire_time(self, value):
|
||||
@@ -38,7 +38,9 @@ class Mythen(DeviceBase):
|
||||
caput( self.prefix + ":cam1:Acquire",0)
|
||||
|
||||
def get_total_counts(self):
|
||||
return caget( self.prefix + ":Stats5:Total_RBV", 'i')
|
||||
ret = caget( self.prefix + ":Stats5:Total_RBV", 'i')
|
||||
self.setCache(ret)
|
||||
return ret
|
||||
|
||||
add_device( Mythen("mythen", "X04SA-ES2-SD1"), True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user