Script execution

This commit is contained in:
gac-x04sa
2018-10-29 11:55:50 +01:00
parent 16192a0ac1
commit 8f5896378f
+3 -2
View File
@@ -55,11 +55,12 @@ class Pixel(DeviceBase, Readable):
def get_count_id(self):
ret = caget (self.prefix + ":FNUM", 'i')
setCache(ret, None)
self.setCache(ret, None)
return ret
def set_count_id(self, val):
caput (self.prefix + ":FNUM", int(val))
setCache(ret, int(val))
self.setCache(int(val), None)
def get_expose(self):
return caget (self.prefix + ":EXPOSE", 'd') / 1000.0