Giter VIP home page Giter VIP logo

kinesis-piezo's Introduction

kinesis-piezo

Python code for the control of Thorlabs piezoelectric stages

The repository contains code for the control of the Thorlabs TPZ001 (piezo driver) and TSG001 (strain gauge reader) controllers with the kinesis API. It contains 2 files:

  • piezo.py for the communication with the controllers that can be used as standalone and
  • piezogui.py that creates a graphical user interface (GUI) written with tkinter.

Description

This code was created for the automation of an optical interferometry experiment and is presented here to act as a guide to people that are looking for something similar. The modular approach makes it very easy to embed in bigger GUIs (see the image bellow) that combine many more instruments which is usually the case in big experiments that require automation.

The red dashed square indicates the GUI carrying the piezo stage functionality that is embedded in a bigger GUI carrying functionality for cameras, a laser and the processing of the acquired data.

Instructions

  1. Make sure you have these installed:
  • pythonnet
  • Pillow, only if you plan to load images to the GUI
  1. Download the source code from the release tab or clone the repository.

  2. (Optional) Download images for the buttons of the GUI.

  3. Connect the controller to your computer and run the piezo.py file or the piezogui.py file if you want to use the GUI. Do not forget to change the serial numbers with the serial numbers of your devices.

Has been tested with python 2.7 and 3.6.

kinesis-piezo's People

Contributors

azdagkas avatar

Stargazers

 avatar  avatar  avatar

kinesis-piezo's Issues

Various Errors

Hello,

i'm trying to fix few errors that pop up, the first one involves line 44, where a .Count is used. Also, it is not specified where the serial number should be put.

Best

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.