Skip to content

A serial communication class for Elliptec's linear stages from Thorlabs.

License

Notifications You must be signed in to change notification settings

augvislab/elliptecstage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python class for Elliptec's linear stages from Thorlabs.

Installation

pip install git+https://github.com/augvislab/elliptec_stage

How to use

import elliptecstage

# Setup the motor
# Connect to the stage
with serial.Serial(port='COM3', baudrate=9600, timeout=0.2) as com:
    stage = ElloStage(com, 0)
    
    # One need to change motor parameters
    stage.initialize_motor()  # Default values are set
    
    # initialize the position
    stage.move_home()
    command, data, address = stage.read_message_blocking_position_response()
    print(f'{command}\t{data}\t{address}')
    
    # Move stage
    pos = 2.0  # [mm]
    stage.move_absolute(pos)
    command, z, address = stage.read_message_blocking_position_response()
    print('Measured position: ' + str(z))

Resources

Communications Protocol from Thorlabs' website.

About

A serial communication class for Elliptec's linear stages from Thorlabs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages