Skip to main content

This is a python interface to Thorlabs equipment which communicates using the APT protocol. Because there are a large variety of these devices, such as translation and rotation stages, flip mounts and laser diode drivers, this package has been kept as general as possible. A hierarchical class structure is designed such that basic functionality is handled transparently at low levels, allowing a minimal amount of code to be used to implement device-specific features.

In its current state, this package should be able to perform device discovery, communications and message encoding/decoding for every APT-compatible device. Classes for a small number of specific motion controllers are provided which give essentially feature complete functionality for these particular devices. To use a new, unsupported device, a subclass can be created which describes the specifics of the device control and implement its new functionality. If the device is very similar to something already implemented, then the amount of coding required can be very small. For example, the TDC001 is a relatively simple DC motor driven motion controller, and the class to implement it is only a few lines of code since it is able to be derived from the APTDevice_Motor class.

The code has no dependence on the Thorlabs software or libraries, and so is platform-agnostic. It has been tested on Linux and Windows, but should work on all other operating systems supported by the pyserial library.

Support

Documentation can be found online at https://thorlabs-apt-device.readthedocs.io/en/latest/.

Bug reports, feature requests and suggestions can be submitted to the issue tracker.

License

All original work is free and open source, licensed under the GNU Public License. See the LICENSE for details.

A fork of the thorlabs-apt-protocol library is included under the protocol directory, which remains under an MIT license. See LICENSE for details.

Metadata

Release files for thorlabs-apt-device 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thorlabs-apt-device 0.3.8
File Size Uploaded
thorlabs_apt_device-0.3.8.tar.gz 55.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thorlabs-apt-device 0.3.8
File Interpreter ABI Platform
thorlabs_apt_device-0.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 119.7 kB

Release files / thorlabs_apt_device-0.3.8.tar.gz

Download URL thorlabs_apt_device-0.3.8.tar.gz
Size 55.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1f51cc7b80ca63cf841d96f2172f420d53890cf049b33458e283dbe248eb22f9
BLAKE2b-256 checksum
How to use checksums
0472e046337437e882d232d77fd6d4b09bccf3c0f3a8689faa122f714f09d508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.11.8

Release files / thorlabs_apt_device-0.3.8-py3-none-any.whl

Download URL thorlabs_apt_device-0.3.8-py3-none-any.whl
Size 64.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84897581dc99e6f1ab774f07f9466d9137c94ac3dfa0fa59cdd305a4c9682872
BLAKE2b-256 checksum
How to use checksums
cc3860afff0deb2379c5feae251a5da9e9773c6ac8e2f09fbdac8d2980e28aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.3.8 This release

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page