def GetAll(self, tmo=1.0): for ch in self.chs.keys(): self.chs[ch] = _ca.sg_get(self.gid, ch.chid, self.chs[ch]) st = _ca.sg_block(self.gid, tmo) if st == 0: for ch in self.chs.keys(): val = _ca.ca_convert(ch.chid, self.chs[ch]) ch.update_val(val[0]) else: raise "CA_SG time out"
def wait(self, tmo=1.0): return _ca.sg_block(self.gid, float(tmo))