Open probonopd opened 9 years ago
Thank you. It works!
Hm, I have a Rigol DS1052E and got this installed successfully, but list_devices() returns an empty list. Has anyone got that working successfully ?
Ah ha, I figured out the problem. In the "Utility" menu on the scope you need to set "USB Device" to "Computer" instead of "PictBridge". I was wondering why it was showing up as an imaging device...
One way to install this package on Mac is via MacPorts:
sudo port install py36-usbtmc
(replace 36 with your favourite version of Python).
I spent quite some time trying to figure out if this was supposed to work on macOS at all (I was looking for /dev/usbtmc
etc.) and then realized that it works "automatically". The most helpful command was
print(usbtmc.list_devices())
This should probably be mentioned somewhere as well.
The following works for me on OS X 10.9:
Note that I am using https://github.com/Homebrew/homebrew to install libusb.