Hi,
I have STB checking for calibration procedures on K2002, but didn't do for readings (don't mind the wait).
Maybe this little piece can help:
def k2002_calsts():
srq = 0x0
cnts = 0
while (srq != 0x20):
sre = intf.ibstat()
if isinstance(sre, (int, long)):
srq = sre
else:
srq = ord(intf.ibstat())
sys.stdout.write ("%d sec, SRQ = %X\r" % (cnts, srq))
time.sleep(1)
cnts = cnts + 1
sys.stdout.flush()
if (srq != 0x0):
intf.write("*CLS")
sys.stdout.write("\r\n")
sys.stdout.flush()
print ("%d seconds, SRQ = %X" % (cnts, srq))
return srq
time.sleep(1)
return srq