Skip to main content

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)

Release files for plico-motor 0.0.5

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

Source distribution (sdist)

Source distribution for plico-motor 0.0.5
File Size Uploaded
plico_motor-0.0.5.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plico-motor 0.0.5
File Interpreter ABI Platform
plico_motor-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 kB

Release files / plico_motor-0.0.5.tar.gz

Download URL plico_motor-0.0.5.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4c638aaa490b2e12c303c200354b45e9076e6e0abfba2eb58c9ac03ad288ee8b
BLAKE2b-256 checksum
How to use checksums
bd0c3ba6738bffce9bfdb6fd4d6e95489f528c252e576561f6f74bc816b252fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / plico_motor-0.0.5-py3-none-any.whl

Download URL plico_motor-0.0.5-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ab5e1cf88194244736b0939e82bac94bb971bf482c21530eba27e1f84f91ffd
BLAKE2b-256 checksum
How to use checksums
59ab90c8c0e11995ea01941b628071fc4d5c0dec98b97bee1d10ce41f9fade01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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