-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
110 lines (58 loc) · 2.79 KB
/
README
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
Lantz: Simple yet powerful instrumentation in Python
====================================================
Lantz is an automation and instrumentation toolkit with a clean, well-designed
and consistent interface. It provides a core of commonly used functionalities
for building applications that communicate with scientific instruments allowing
rapid application prototyping, development and testing.
The package is name lantzdev (not lantz) to avoid name collision with previous
package.
Installing
----------
You can install the full version very easily:
pip install -U "lantzdev[full]"
All requirements will be automatically installed for you except PyQt.
We suggest that you use [Anaconda Python Distribution](https://www.anaconda.com/)
and use an environment
conda create --name lantz python=3.6 pyqt
conda activate lantz
Having fun
----------
If you do not have the NI-VISA library installed, install the pure python
replacement by running the following command in your terminal:
pip install pyvisa-py
and then tell Lantz to use it:
lantz config core.visa_backend @py
Then start the simulator in one terminal:
lantz sims fungen tcp
and the testpanel in another:
lantz qtdemo testpanel
Installation options
--------------------
Lantz is organized ina modular way. You can install what you need.
### Minimal
If you just want to control instruments, simulate devices and create you own drivers.
pip install -U lantzdev
subpackages used: *core, drivers, sims*
### Arduino
If in aditional to **Minimal** you want to build arduino drivers.
pip install -U "lantzdev[ino]"
- subpackages used: *core, drivers, sims, ino*
- suggested dependencies: *[arduino-cli](https://github.com/arduino/arduino-cli)*
### Qt
If in aditional to **Minimal** you want to build graphical Qt widgets.
pip install -U "lantzdev[qt]"
- subpackages used: *core, drivers, sims, qt*
- required dependencies: *[PyQt > 5](https://riverbankcomputing.com/software/pyqt/intro)*
#### Full
pip install -U "lantzdev[full]"
- subpackages used: *core, drivers, sims, ino, qt*
- required dependencies: *[PyQt > 5](https://riverbankcomputing.com/software/pyqt/intro)*
- suggested dependencies: *[arduino-cli](https://github.com/arduino/arduino-cli)*
#### Install from git
You can try the latest version by installing from git. On your terminal:
pip install -U https://github.com/lantzproject/lantz-core/zipball/master
pip install -U https://github.com/lantzproject/lantz-drivers/zipball/master
pip install -U https://github.com/lantzproject/lantz-qt/zipball/master
pip install -U https://github.com/lantzproject/lantz-sims/zipball/master
pip install -U https://github.com/lantzproject/lantz-ino/zipball/master
pip install -U https://github.com/lantzproject/lantz/zipball/master