labjack / labjack-ljm-python

LJM library Python wrapper for LabJack T4, T7 and T8.
MIT License
38 stars 21 forks source link

labjack-ljm : LJM library Python wrapper for LabJack T4, T7 and T8 12/01/2023 support@labjack.com

The Python wrapper package, modules and examples for the cross-platform LJM library, which supports the LabJack T4, T7 and T8.

Installation Requirements:

Installation:

After fulfilling the requirements, open a terminal/console and use pip to install labjack-ljm for the first time:

python -m pip install labjack-ljm

To upgrade to a newer version use:

python -m pip install labjack-ljm --upgrade

On Linux and macOS, you can also install with pip like so:

pip install labjack-ljm

Alternatively, download the labjack-ljm distribution source, unzip the contents and go to its unzipped directory. To install, run the the following command (run with sudo on Linux and macOS):

$ python setup.py install

If using Conda, we suggest creating a skeleton package from our PyPi package, then install with Conda: conda skeleton pypi labjack-ljm conda-build labjack-ljm

Distribution Name Change:

The previous distribution name was LJMPython in versions v1.19 and older. Starting with version 1.20 and the releases on PyPi, the distribution name is labjack-ljm. The namespace, package and interface remain the same.

Installation Troubleshooting:

Examples:

Example code can be found in the Examples directory.

Documentation:

LJM Python documentation can be found in the docstrings of the source code. The source code files are located in the labjack/ljm directory.

Alternatively, after installation in Python you can use the help function on a module for documentation. For example:

$ python
>>> from labjack import ljm
>>> help(ljm.ljm)

LJM library documentation can be found here:

https://labjack.com/support/software/api/ljm

T4, T7 and T8 documentation can be found here:

https://labjack.com/support/datasheets/t-series

License:

All LJM Python modules and examples are licensed under MIT X11. The license can be found in the LICENSE.TXT file.