bendev
BENDEV is an open source crossplatform python package for communicating with the USB/SCPI-enabled Bentham Instruments hardware devices such as the TLS120Xe. The package uses hidapi to send and receive text based commands and replies using the USB HID protocol. It is available under the permissive MIT license.
Read more on this project's PyPI page, or view the source code on github, including the license.
Installation
bendev can be installed with pip. To do so, run this pip command:
pip install bendev
No hardware drivers should be required.
Usage
bendev can be imported like any other python module, and can be used as a context manager. In the below example, no arguments are given to bendev.Device() and as a result it connects to the first Bentham device found.
>>> import bendev >>> with bendev.Device() as dev: ... print(dev.query("*IDN?")) "Bentham Instruments Ltd.","MSH150_RD_Direct","99999/9","1.2.53"