Python Library to interface with Thyracont's VSR53 vacuum gauges
Project description
VSR53
This is a Python library to communicate with Thyracont's VSR53USB pressure gauge. It should also work with the VSR53DL model (over RS485) but I haven't tested it as I don't have access to one.
This library is a fork of this repository. All credits go to the original author.
The original library was designed for the RS485 protocol and does not work out of the box for the USB version of this sensor, however, with some minor modifications such as allowing the user to set the baudrate and updating the default value (to 9600 instead of 115200) it works perfectly.
Installation
This library is available in PyPI and can be installed with pip:
pip install vsr53
Usage
from vsr53 import VSR53USB
port = "/dev/ttyUSB0" # replace with the device port of your gauge
with VSR53USB(port) as gauge:
print(gauge.get_device_type())
print(gauge.get_product_name())
print(gauge.get_measurement_value())
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
Built Distribution
File details
Details for the file vsr53-1.0.0.tar.gz
.
File metadata
- Download URL: vsr53-1.0.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0157ebf3ab8e5269def1e80bdccfe3dd6a1acc2fd3a348b8202b750ed458d3cf |
|
MD5 | 695cadd00fc7ac9ebda57516500aad62 |
|
BLAKE2b-256 | 45eee89d5aefc89d4e43fc4e713ee17d81c7b0726c7181c6d756055a30f8daeb |
File details
Details for the file vsr53-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: vsr53-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3a6af22c5d8a86cca1b84059e740dc5c84ee0bb4fceee17cdaeb1704c2da62 |
|
MD5 | b4c2733676ebeed336b6e09218640ee5 |
|
BLAKE2b-256 | 7c688af0e765a0e0f1c8a741e88109e6b5eb4b12617b523300e8f59045714e98 |