Skip to main content

Plesty K10CR1 Device

Plesty device for the Thorlabs K10CR1 motorized 360° cage rotation stage, driven over USB serial with the binary APT protocol (no Kinesis/.NET runtime required, works on Windows and Linux).

Device constants (unit scaling, software limits, stage defaults, runtime defaults) live in plesty/k10cr1/config.yaml; the parameter set is defined in plesty/k10cr1/schema_param.json.

Installation

git clone https://gitlab.com/plesty/hub/devices/thorlab/plesty-k10cr1.git
cd plesty-k10cr1
uv sync

Run As TCP Server

Windows only: the controller's custom FTDI product id is claimed by no driver macOS can load, and no rig here has bound it on Linux. The simulator (--mock) runs anywhere. See the docs for the detail.

Connect the stage via USB. Left unset, the server finds the APT controller attached to the host — set DEVICE_PORT in .env (or --port, or running.port in config.yaml) only to name one stage among several: either the serial port (COM3) or, better, the controller's serial number from the unit's label (55001327), which stays valid when replugging moves the COM name. Then:

uv run python -m plesty.k10cr1 --tcp-port 5555

Pass --mock to serve the in-memory APT motor simulator instead of real hardware.

Run pytest

All tests run against the simulator; set DEVICE_PORT in .env to also run the real-device test.

uv run pytest

Download files

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

Source Distribution

plesty_k10cr1-0.3.0.tar.gz (146.7 kB view details)

Uploaded Source

Built Distribution

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

plesty_k10cr1-0.3.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file plesty_k10cr1-0.3.0.tar.gz.

File metadata

  • Download URL: plesty_k10cr1-0.3.0.tar.gz
  • Upload date:
  • Size: 146.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plesty_k10cr1-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e9fbab6533cd7aa9421a095f08e5e559b307d70e51f1e36cc52b78c4f826d398
MD5 bce5e58d7ae62e5eea5367be398942fc
BLAKE2b-256 1c10713d5200da2de7096e06b008e0ad9b5673547e69ec1abaacd6dcdafbf30d

See more details on using hashes here.

File details

Details for the file plesty_k10cr1-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: plesty_k10cr1-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plesty_k10cr1-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f843c9463973b25b37f5c736d78d7f8e7aa4fd30682792824e56935d7a737344
MD5 59ddfc22ab380d35fc8ce2bd8e6ee247
BLAKE2b-256 422c58da17485063989ed1b1f2bdf3742d332f8af3b9e279677d2b58075136f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 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