python-ivi / python-usbtmc

Provides a USBTMC driver for controlling instruments over USB
MIT License
160 stars 69 forks source link

read_stb() btag mismatch #47

Open Se7enLC opened 6 years ago

Se7enLC commented 6 years ago

If you call read_stb() more than ~128 times, there's a btag mismatch.

I was able to fix the problem by changing this line: rstb_btag = (self.last_rstb_btag % 128) + 1 to rstb_btag = (self.last_rstb_btag + 1) % 128