Skip to main content

A python library/GUI.

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

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytriggersynced-0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytriggersynced-0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file pytriggersynced-0.1.tar.gz.

File metadata

  • Download URL: pytriggersynced-0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for pytriggersynced-0.1.tar.gz
Algorithm Hash digest
SHA256 d66d889b31aaf0070b3624a49694d50ffb60cdee5e7729612c45ffe2dd3c84b9
MD5 ce4a65ea56f0eca6bd3ad405fa6a3fab
BLAKE2b-256 9c8685a8677cf1a5f5c5b6fe481f0e35427dab76c3032bdb82bdeccfa4aa110b

See more details on using hashes here.

File details

Details for the file pytriggersynced-0.1-py3-none-any.whl.

File metadata

  • Download URL: pytriggersynced-0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for pytriggersynced-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b70c2fe1834cad581b9dee0f29033b1e5b84f0b7b19899901b1ed14de0ad156
MD5 e451fcf74d526590362ec2db08b14fda
BLAKE2b-256 935a637f0b52a032cd4cc4bb19cdaad285b9f7968957e819c629f8e2a5f15cfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page