-
Notifications
You must be signed in to change notification settings - Fork 21
/
README.TXT
executable file
·118 lines (73 loc) · 3.73 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
labjack-ljm : LJM library Python wrapper for LabJack T4, T7 and T8
12/01/2023
The Python wrapper package, modules and examples for the cross-platform LJM
library, which supports the LabJack T4, T7 and T8.
Installation Requirements:
* Windows, Mac OS X / macOS, or Linux
* LJM library: https://labjack.com/support/software/installers/ljm
* Python 2.6, 2.7 and 3.x.
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:
- If you have multiple versions of Python installed, make sure you install for
the Python version you will be using. 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 labjack-ljm install
- On Windows, if you have Python installed and installation of labjack-ljm fails
with an error of, or similar to:
'python' is not recognized as an internal or external command, operable
program or batch file.
The Python executable path may not have been added to the Windows user or
system path. One way to add Python to the path is to run the Python Windows
installer and in the "Customize Python" window click the "Add python.exe to
Path" option towards the bottom and select "Will be installed on local hard
drive". Afterwards, open a new terminal/console and retry labjack-ljm
installation.
- If you have LJMPython version 1.19 or older installed, and are updating to
labjack-ljm v1.20 or newer, using pip for installation is recommended.
If using setup.py for installation, afterwards check the labjack.ljm version
number.
from labjack import ljm
print(ljm.__version__)
If it is not the version you installed and still reports a previous version,
go to your Python site-packeges directory. If you see a
labjack_ljm-<DIST_VER>-py<PY_VER>.egg file (<DIST_VER> is labjack-ljm version
and <PY_VER> is the Python version), delete the labjack directory. The egg
file contains the labjack folder files zipped, and the labjack folder and its
files are conflicting.
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.