-
Notifications
You must be signed in to change notification settings - Fork 20
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
usbtmc AssertionError #4
Comments
Same problem happening here for me. Scope is DS1054Z with software version 00.04.04.SP3; Mac is on Mojave 10.14.6. Happy to help troubleshoot if I can. |
@Cabalist and @jgarbers : I've made some changes that may or may not fix the So please pull the latest master version and type the following in a shell. Let me know what happens:
|
Thanks @rdpoor for the fix, but unfortunately I can't report success here... the script reports " Checking the logic in your
I confirmed that name is indeed coming from the scope by unplugging it, in which case the script does not find any names at all. If I disable the name check in your code and just press ahead with the first and only name found, the script does end up failing with the same AssertionError originally reported by @Cabalist. Hope this is helpful and please let me know if there's anything else I can try on this end. Thanks for your time and effort! Here is the
|
I don't know what's going on down in the depths of PyVISA, but as a bit of additional debugging information, I added a line to the
which looks like a sort of "get info" response. If I'm reading it right, the code is expecting to unpack a 0x02 byte ( Again I have no idea what the protocol is here but thought this might provide a clue. Thanks! |
Good sleuthing -- thanks for the info. One thing that's odd is that your VID-PID string is in decimal -- I've always seen it in hex, so naturally my simple minded find method fails. As for the assertion error, no clue (yet). It may be worth noting that I have a slightly newer clang and slightly older ni library. I'll see if I can figure out how to upgrade my ni library and see what changes. And I'll try adding the
|
I'm getting the following issue running on macOS 10.14.4 with Python 3.7 on a Rigol DS1054Z
When I inspect this
msgid
is 65 and the data is:b'Author\x00RIGOL\xe7\x88\x8c\xc9\x00\x00\x00\x11tEXtSource\x00DSZ series?Z\x1d\x97\x00\x00\x00)tEXtDescription'
The text was updated successfully, but these errors were encountered: