Python module to control USBTMC/USB488 from python/cython
Project description
PyUSBTMC:python module to handle USB-TMC(Test and Measurement class) devices. It requires pyusb module and libusb or openusb libraries.
(C) 2012-2015, Noboru Yamamot, Accl. Lab, KEK, JAPAN contact: noboru.yamamoto_at_kek.jp
- rev.0.1d17:
.read/.ask functions now use 0 as default values for requestSize arguments. And requestSize=0 means, read data until eom is returned.
- rev.0.1d14:
remove reset in __init__ of USBTMC_device. It breaks everything for the device from Tektronix. bring back mkDevDepMSGOUTHeader to older version.
Note on root priviledge
PyUSBTMCでPyUSBTMC_deviceあるいはUSB488_deviceオブジェクトの作成時に、 “usb.core.USBError: [Errno 13] Access denied (insufficient permissions)”のエラーが出る場合があります。
この場合には、
sudo コマンド経由でpython3を起動する。
Linux では、この配布に含まれる 55-usb-tmc488.rules ファイルを /etc/udeb/rules.d ディレクトリにコピーします(root権限が必要です)。 使用するデバイスのidVendorが 55-usb-tmc488.rules に含まれない場合は、そのidVendorをファイルに追加します。idVendorはlsusbコマンド(このパッケージ中のlsusb.pyモジュールも利用可能)を使って入手できます。 以後は sudo コマンドなしでもデバイスオブジェクトが作成出来ます。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyusbtmc-0.2.dev7.tar.gz.
File metadata
- Download URL: pyusbtmc-0.2.dev7.tar.gz
- Upload date:
- Size: 633.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9258513a1c8d94c9c875c5ba4dbdd87fe4f06169744c9c63e317bb0bf9b3e9b
|
|
| MD5 |
51cbaa7d10a19cc386341a6b2206b3de
|
|
| BLAKE2b-256 |
02322a71962212e96d9d278fc0577429da53cf278a12f147e056a112bbc2f08d
|