Skip to main content

Package to communicate with Thorlab MDT69X Piezo controller

Project description


This is a simple Python module to communicate with Thorlabs MDT69X Piezo controllers.

Getting Started

Simply copy the in your project directory. The module uses the pySerial module to communicate over USB with the controller, so make sure to add it to your project as well.

Alternatively, install the module by running:

pip install mdt69x


The module implements almost all commands supported by the Thorlabs MDT693 controller. The only commands not implemented are DACSTEP (both get and set), and the arrow commands (up, down, right, left).

An example file is provided (, which shows usage of a few of the available methods.

The module was tested with the Thorlabs MDT693, but it should also work with the other MDT69X modules.

It works both with and without compatibility mode, although it defaults to compatibility mode. Note that certain commands (such as set_xyz_voltage) will only work on firmware version >2, and will not work if you try to use them on compatible hardware/firmware.


  • Claudio Arena - University College London (UCL), Astrophysics PhD


This project is licensed under the MIT License - see the file for details

Project details

Download files

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

Source Distribution

mdt69x-1.0.11.tar.gz (5.7 kB view hashes)

Uploaded source

Built Distribution

mdt69x-1.0.11-py3-none-any.whl (6.0 kB view hashes)

Uploaded py3

Supported by

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