Skip to main content

motor controller with PLICO

Project description

plico_motor

client of a motor controlled under the plico environment

Python package codecov Documentation Status PyPI version

plico_motor is an application to control motors under the plico environment.

Installation

Note: it is recommended, before installing packages, to create a conda environment to work.

conda create --name myenv

To create an environment with a specific python version

conda create --name myenv python=3.7

To activate you environment

conda activate myenv

On server

On the server machine you install plico_motor_server with the following command

pip install plico_motor_server

This command also installs a server configuration file that needs to be modified. The file is located at 'yourLocalPath/plico_motor_server/plico_motor_server/conf/plico_motor_server.conf' and contains ip address and port number of your motor. There are five types of motor indicated with motor1, motor2, motor3, motor4 and motor5: this number is to be used to start the corresponding server.

The plico_motor_server package installs also the client package.

On client

On the client machine

pip install plico_motor

Usage

Customize configuration file

location: 'yourLocalPath/plico_motor_server/plico_motor_server/conf/plico_motor_server.conf' The configuration file can be edited by specifying the characteristics with which you want to set your motors at server start-up (speed, usb_port ...) and specifying the number of motors you want to use (from one to five).

Servers are available for:

  • Any motor using the PI GCS communication protocol with serial or USB connection
  • Tunable Filter (KURIOS VB1 - Thorlabs) with serial or USB connection
  • Filter Wheel (FW102B - Thorlabs) with serial or USB connection
  • Newport Picomotor linear actuators
  • Standa 8SMC5-USB motor using driver Standa 8smc4-5: standa devices are currently not supported on MacOS X because the installation of the libximc library via pip command does not include the macosx package.

Starting Servers

On the servers machine use the executable

plico_motor_server_n

where n indicates the number of the server you want to start in according to what is declared in the configuration file. If you wish to start all servers included in the configuration file, use the command

plico_motor_start

Using the client module

In a python terminal on the client computer:

from plico_motor import motor
your_motor = motor(ServerHostName, ServerPort, axis)

Usage example

your_motor.home()
your_motor.move_to(1000)   #nanometers
your_motor.move_by(-50)

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

plico_motor-0.0.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

plico_motor-0.0.5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file plico_motor-0.0.5.tar.gz.

File metadata

  • Download URL: plico_motor-0.0.5.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for plico_motor-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4c638aaa490b2e12c303c200354b45e9076e6e0abfba2eb58c9ac03ad288ee8b
MD5 c51f7514c5228d4e80e0336f1d92a972
BLAKE2b-256 bd0c3ba6738bffce9bfdb6fd4d6e95489f528c252e576561f6f74bc816b252fb

See more details on using hashes here.

File details

Details for the file plico_motor-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: plico_motor-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for plico_motor-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab5e1cf88194244736b0939e82bac94bb971bf482c21530eba27e1f84f91ffd
MD5 726b09c93e04daaa716ae39ba3c30593
BLAKE2b-256 59ab90c8c0e11995ea01941b628071fc4d5c0dec98b97bee1d10ce41f9fade01

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