STRIDE-driver
a driver/reader for Stride thermocouple modules
To use, include the StrideClient.py file in your project. The output of this code is a list of thermocouples 1-8.
Installation
pip install StrideModbusDriver
Usage
Import the class with:
from StrideModbusDriver.StrideClient import StrideClient
Example
# Import the StrideClient class from the library
from StrideModbusDriver.StrideClient import StrideClient
def main():
# Initialize the StrideClient with the host IP address
modbus_device = StrideClient(host="192.168.1.126")
# Make the units Celsius
modbus_device.write_units('C')
try:
# Call the read_firmware function and store the result
result = modbus_device.read_temps()
# Print the result of the read_firmware function
print(f"{result}")
except Exception as e:
# Print an error message if reading fails
print(f"Error reading firmware version: {e}")
if __name__ == '__main__':
main()
With one thermocouple attached to input 1, and the thermocouple in free air, the output will be:
[23.3, 1421.1, 1421.1, 1421.1, 1421.2, 1421.2, 1421.3, 1421.3]
Changing thermocouple type
The thermocouple type is set by the set_input_type method. For example, setting input 0 to a 'K' type thermocouple will be:
'''python modbus_device.set_input_type(0, 'K') ''''
Supported thermocouple types are:
- Disabled
- Voltage
- K
- J
- R
- S
- T
- B
- E
- N
Configuring Stride devices
Good luck. The Stride devices are only controllable through Ethernet. There's information written on the units themselves. If you change the IP address, please change the label.
Metadata
Release files for StrideModbusDriver 0.11.0
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 | |
|---|---|---|---|---|
| StrideModbusDriver-0.11.0.tar.gz | 3.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| StrideModbusDriver-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / StrideModbusDriver-0.11.0.tar.gz
| Download URL | StrideModbusDriver-0.11.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b76bcd26d2f858fc9a49227204d4b89126897644e223203cca7c06e2e005cbe7
|
|
BLAKE2b-256 checksum How to use checksums |
187144e4ee40e7b87a1bd404b526ddee60656d57c8facf4e276c8c421ce04210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / StrideModbusDriver-0.11.0-py3-none-any.whl
| Download URL | StrideModbusDriver-0.11.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa28e97d1a721a7541d5898c145afe936523c5cba1868ebed735ec618dc9115a
|
|
BLAKE2b-256 checksum How to use checksums |
4ad928bfdf344691e6e3f8075f8d431212b721f03be981a09326b1517d1fe854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for StrideModbusDriver 0.11.0
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.