ITECH serial library for Python
Control ITECH test equipment using a proprietary 26-byte UART protocol.
You'll need to make your own adapter to connect your test equipment to your computer, or presumably buy an isolated one.
Note: If your test equipment has a USB port, use that instead! The -A and -B variants of some ITECH product lines have an optional USB port, which is is supported by standard USBTMC libraries such as pyvisa. This library is intended for devices that only implement a proprietary control protocol over a TTL serial port.
Usage
First, install the library from pypi:
pip install itech_serial
Then, assuming you have an IT8511 load, and it is connected to your computer using a USB-to-serial converter that was identified as /dev/ttyUSB0, you can open a connection to it like this:
from itech_serial import IT8500
load = IT8500('/dev/ttyUSB0')
During connection, the library will check that the device identify matches a known string. If you have different equipment that speaks the same protocol (such as a BK Precision load), please create an issue on GitHub with the device details and the reported string.
Once the connection is made, you first need to enable remote control to allow the device to be controlled over serial:
load.control_set_remote()
Next, you can set the device to (for example) a 0.5A constant current load:
load.mode_set('cc')
load.constant_current_set(0.5)
load.enable()
You can then read back the measured voltage and current that the load sees:
print(load.measure)
When you are done, be sure to turn the load off, and (optionally) set the device control back to local to allow the front panel buttons to work again:
load.disable()
load.control_set_local()
Identifying a specific USB device
If you know what USB to serial converter is connected to your instrument, you can use the find_usb() function to locate it by VID, PID, and optionally serial number:
from itech_serial import find_usb
load = IT8500(find_usb(vid=0x10c4, pid=0xea60, serial_number='00F84E81')[0])
This is especially helpful for situations where you have multiple instruments connected to a single computer, and need a reliable way to connect to the correct one.
Metadata
Release files for itech_serial 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| itech_serial-0.1.4.tar.gz | 11.1 kB | Without provenance | Details for itech_serial-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| itech_serial-0.1.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for itech_serial-0.1.4-py2.py3-none-any.whl |
Total release size: 24.0 kB
Release files / itech_serial-0.1.4.tar.gz
| Download URL | itech_serial-0.1.4.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4628865a8a2106151192cc351f61eea00d34b314576fd993360d602bdc057b48
|
|
BLAKE2b-256 checksum How to use checksums |
d4443d34b7a432a6029d2460245b9aabd45e3b3de8508fa70e6149871fe415e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / itech_serial-0.1.4-py2.py3-none-any.whl
| Download URL | itech_serial-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7f062952676e54081642dacfb129dab1b8bfdbae97a19c5dc1232a4ca15790c2
|
|
BLAKE2b-256 checksum How to use checksums |
8a1e731955354db95e2d7d0b67583776b97f5de7b98459c2e84f7b5e95c79ce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for itech_serial 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.