sti-LabJackPython
Cross-platform (Windows, Linux, Mac OS X) Python modules and examples for the LabJack U3, U6, UE9 and U12.
2019-01-23
Requirements
LabJackPython requires Python 2.6, 2.7 or 3.x. For Python 3.x, most functionality has been tested but not all yet. Please report bugs to support@labjack.com or on GitHub:
https://github.com/labjack/LabJackPython
To use Modbus first check that your LabJack device meets the minimum required firmware version listed on this page:
https://labjack.com/support/software/api/modbus/ud-modbus
To upgrade firmware look at this page:
https://labjack.com/support/firmware
To use Modbus on a UE9 over Ethernet, install Comm firmware 1.50 or higher.
Install:
To install for a user
$ python -m pip install --user --upgrade sti-LabjackPython
To install systemwide (not recommended)
$ python -m pip install --upgrade sti-LabjackPython
If there are multiple versions Python installed, run the install command with the Python version you want to install to. For example, on Linux if both Python 2.7 and 3.5 are installed, you can install to Python 3.5 with:
$ python3.5 -m pip install sti-LabjackPython
Run
From there, interacting with your devices is easy.
For U3:
>>> import u3
>>> d = u3.U3()
>>> d.configU3()
{'BootloaderVersion': '0.27',
'CIODirection': 0,
...,
}
>>> d.close()
For U6:
>>> import u6
>>> d = u6.U6()
>>> d.configU6()
{'BootloaderVersion': '6.15',
'FirmwareVersion': '0.88',
...,
}
>>> d.close()
For UE9:
>>> import ue9
>>> d = ue9.UE9()
>>> d.commConfig()
{'IPAddress' : '192.168.1.209'
...,
}
>>> d.close()
For U12:
>>> import u12
>>> d = u12.U12()
>>> d.eAnalogIn(0)
{'overVoltage': 0,
'idnum': 0,
'voltage': 1.42578125
}
>>> d.close()
For examples, check the Examples/ directory. For additional information, go to the LabJackPython page on LabJack's website:
https://labjack.com/support/software/examples/ud/labjackpython
LICENSE
All LabJackPython library and example source code are licensed under MIT X11.
Metadata
Release files for sti-LabJackPython 2.0.0.post1
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 |
|---|---|---|---|---|
| sti-LabJackPython-2.0.0.post1.tar.gz | 110.9 kB | Without provenance | Details for sti-LabJackPython-2.0.0.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sti_LabJackPython-2.0.0.post1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sti_LabJackPython-2.0.0.post1-py2.py3-none-any.whl |
Total release size: 224.1 kB
Release files / sti-LabJackPython-2.0.0.post1.tar.gz
| Download URL | sti-LabJackPython-2.0.0.post1.tar.gz |
|---|---|
| Size | 110.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
188c956547b425133fa4979a5dc2e556c3efc81515f081492cca2659067d2123
|
|
BLAKE2b-256 checksum How to use checksums |
8a181219cb54daf9daa2b954b2475707b04480a39c134a88a53b070efa998c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1
|
Release files / sti_LabJackPython-2.0.0.post1-py2.py3-none-any.whl
| Download URL | sti_LabJackPython-2.0.0.post1-py2.py3-none-any.whl |
|---|---|
| Size | 113.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dc88d3e1b5cde2c93372396a7c217d47bf88b7b625e01fc6d88e7ed259e5c004
|
|
BLAKE2b-256 checksum How to use checksums |
81ab4981b7307f79e2678d167a5dd71326a01bdf4ff14045fce6bd44d8dc788c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1
|
Security for sti-LabJackPython 2.0.0.post1
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.