LabJackPython (Windows UD, Mac, Linux)
LabJackPython is our cross-platform Python module for communicating with the LabJack U3/U6/UE9/U12. It works on Windows with the UD Driver and U12 Driver, and on Linux and Mac OS X with the Exodriver. For the LJM library (T7), use Python_LJM.
The latest stable release of LabJackPython is from April 24, 2014: Download 4-24-2014 release of LabJackPython.
For the latest development version, archived versions and code repository, visit LabJackPython on GitHub.
Python 2.5, 2.6, or 2.7. Python 3 is currently not supported. On Mac OS X, the built-in Python works, and it is 32- and 64-bit compatible. It also comes with Twisted, which you would need to use LJSocket. Use the built-in Python unless you have a good reason not to. Recent Linux distributions also ship with new enough versions of Python built in.
If using Modbus, make sure your LabJack meets the minimum firmware requirement mentioned in the Modbus Support table on the UD Modbus page.
Unzip the LabJackPython.zip file and open a terminal/command prompt. In the terminal, use the command line to go to the unzipped LabJackPython directory (e.g., “cd Desktop/LabJackPython” ). Then run one of the following commands to install the LabJackPython modules:
python setup.py install
Linux and Mac OS X
$ sudo python setup.py install
Note the LabJackPython zip file and unzipped directory name will vary on the download.
For LabJackPython documentation, please refer to the docstrings in the source code or use the help function. For example, documentation on classes and functions in the u3 module can be found in the u3.py source or by using the “help(u3)” call in Python (note to “import u3” first). For specific documentation on only the U3 class use “help(u3.U3)”.
LabJackPython provides both a Modbus and low-level command interface for performing operations on a LabJack device. Quickstarts can be found for both in the Modbus Quickstart and Low-level Commands Quickstart sections.
- 3rd Party Applications
- Programming Resources
- LJM Library
- UD Library
- Example Code/Wrappers
- DAQFactory Examples (Windows UD)
- Delphi (Windows UD)
- C, C++, VC6 (Windows UD)
- C#, VB.Net (Windows UD)
- Igor Pro (Windows UD)
- Java (Windows UD)
- LabVIEW (Windows UD)
- LabWindows/CVI (Windows UD)
- MATLAB Examples (Windows UD)
- PureBasic (Windows UD)
- Python (Windows UD, Mac, Linux)
- VEE (Windows UD)
- Visual Basic (VB6, VBA, Windows UD)
- User's Guide
- Archived/Barebones Versions
- Example Code/Wrappers
- U12 Library
- Exodriver (Mac & Linux)
- Alternate Interfaces
- Misc. Utility Apps
Thanks for the great support you provide. You always provide the answer that I need, and you manage it in a very short time.—Mark, Racal Acoustics