-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Struggles with USB-Serial Adapter / toptica_ibeam.py #969
Comments
I found something:
These lines cannot work, as the pyvisa.SerialInstrument does not have a flush_read_buffer method.Instead, the lines should be self.adapter.flush_read_buffer . Could you try that, please?
Some informational comments:
Yes, you're supposed to override
Exactly, there was an adapter for the ibeam, but we moved the logic from that adapter into the ibeam_smart itself in order to be able to use doctests and to harmonize adapter usage in the codebase. |
Those two lines are definitively wrong and have to be changed as indicated (would you mind doing that as a PR?). Maybe protocol tests can help to test that functionality and to ensure, that it continues to work as exspecetd. |
I created a PR #1065 which fixes the code bug I found above. |
Yes, I would but I'm currently in home office after an operation. BTW, the |
I wish you a good recovery. |
We have considerable issues using the
toptica_ibeam.py
instrument with the USB-serial adapter that Toptica provided. We managed to get it working more or less but faced a number of issues when upgrading to 0.12 (we already submitted a fix that is already in 0.13).The core issue is one of timing or buffer management. We regularly get responses from previous commands. This error leads us to believe that it may be a buffer issue:
Adjusting the
query_delay
per documentation (BTW: this causes a deprecation warning) does not help – 200 ms should be more than enough. I guess we are supposed to overridewait_for
?At some point there was an
adapter.py
fortoptica_ibeam.py
but this was removed. Is there some way of restoring the 'flush_read_buffer'? I would be happy to do a PR if someone would point me in the right direction.Note: I have looked at other issues like #965, # #567 and even the original PR #352
toptica_ibeam.py
and haven't really been able to get traction.The text was updated successfully, but these errors were encountered: