A python library/GUI to access and control the KCube Piezo Controller and Strain Gauge Reader KPC101 from Thorlabs.
Project description
pyThorlabsKCubeKPC101
pyThorlabsKCubeKPC101 is a Python library/GUI interface to control the K-Cube® Piezo Controller and Strain Gauge Reader KPC101 from Thorlabs. The package is composed of two parts: a
low-level driver to perform basic operations, and a high-level GUI, written with PyQt5, which can be easily embedded into other GUIs. The low-level driver can be used as stand-alone library.
The interface can work either as a stand-alone application (via either the high-level GUI or the low-level driver), or as a module of ergastirio.
Note: so far the code has only been tested with the translation stage NFL5DP20S connected to the KPC101.
Table of Contents
- Installation
- Usage via the low-level driver
- Usage as a stand-alone GUI interface
- Embed the GUI within another GUI
Installation
Use the package manager pip to install,
pip install pyThorlabsKCubeKPC101
This will install pyThorlabsKCubeKPC101 together with all libraries required to run the low-level driver. In particular, the library pythonnet is required and it will be installed. If during the installation any error message appears related to pythonnet, try running again the command pip install pythonnet.
In order to use the GUI, it is necessary to install additional libraries, specified in the requirements.txt files,
pip install abstract_instrument_interface>=0.10
pip install "PyQt5>=5.15.6"
pip install "pyqtgraph>=0.12.4"
pip install numpy
Usage via the low-level driver
TO-DO
Usage as a stand-alone GUI interface
The installation sets up an entry point for the GUI. Just type
pyThorlabsKCubeKPC101
in the command prompt to start the GUI.
Embed the GUI within another GUI
The GUI controller can also be easily integrated within a larger graphical interface, as shown in the [TO DO]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythorlabskcubekpc101-0.1.tar.gz.
File metadata
- Download URL: pythorlabskcubekpc101-0.1.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48f8bcb89a98f0ad98ed2a15c163b1e58e7912f89d7d93b33c46e2d09197df0
|
|
| MD5 |
bca835a9a32858775090c75f359e3c57
|
|
| BLAKE2b-256 |
350e72027473ea3aefdb16fb0d5286841598fb2006b400e086851af477801788
|
File details
Details for the file pythorlabskcubekpc101-0.1-py3-none-any.whl.
File metadata
- Download URL: pythorlabskcubekpc101-0.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
257b689d5500b26d4c28a5556ba5b07f89cc5bbb2ff9474926d4955037d01357
|
|
| MD5 |
9b0bf1059ba0bea64f06f403b9e71e06
|
|
| BLAKE2b-256 |
6685ecd1db63df77a0b8ecdf2c792cacb3277194775c8abaf1dc2fa69ea572b4
|