def status(self): stat = gpib.ibsta() statvals = {} for key in ibsta_dic: if stat & (1 << key): statvals[ibsta_dic[key][0]] = ibsta_dic[key][1] return statvals
def ibsta(self): self.res = gpib.ibsta() return self.res
def status(self): return gpib.ibsta()