Skip to main content

No project description provided

Project description

libximc

This is python binding for libximc - cross-platform library for [Standa 8SMC5-USB](Stepper & DC Motor Controller - Motorized Positioners & Controllers - Catalog - Opto-Mechanical Products - Standa) motor controllers.

Libximc manages hardware using interfaces: USB 2.0, RS232 and Ethernet, also uses a common and proven virtual serial port interface, so you can work with motor control modules through this library under almost all operating systems, including Windows, Linux and Mac OS X.

This library also supports virtual devices. So you can make some tests without real hardware.

Installation

pip install libximc

Minimal example

import time
from ctypes import c_int, byref
import libximc as ximc

# Virtual device will be used by default.
# In case you have real hardware set correct device URI here

device_uri = "xi-emu:///virtual_motor_controller.bin"  # Virtual device
# device_uri = "xi-com:\\\\.\\COM111"                  # Seril port
# device_uri = "xi-tcp://172.16.130.155:1820"          # Raw TCP connection
# device_uri = "xi-net://192.168.1.120/abcd"           # XiNet connection

device_id = ximc.lib.open_device(device_uri.encode())
if device_id > 0:
    print("Device with URI {} successfully opened".format(device_uri))
else:
    raise RuntimeError("Failed to open device with URI", device_uri)

print("Launch movement...")
ximc.lib.command_right(device_id)

time.sleep(3)

print("Stop movement")
ximc.lib.command_stop(device_id)

print("Disconnect device")
ximc.lib.close_device(byref(c_int(device_id)))

print("Done")

More information

If you have faced any issues while using the library and you have no idea how to solve them contact technical support via:

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

libximc-2.14.13.tar.gz (55.9 MB view details)

Uploaded Source

Built Distribution

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

libximc-2.14.13-py3-none-any.whl (18.7 MB view details)

Uploaded Python 3

File details

Details for the file libximc-2.14.13.tar.gz.

File metadata

  • Download URL: libximc-2.14.13.tar.gz
  • Upload date:
  • Size: 55.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for libximc-2.14.13.tar.gz
Algorithm Hash digest
SHA256 2bced339d7027442181a7e35af5b3bda99448192574cff039f7a7adb91a301da
MD5 91e00e9403f96821097ee139ff1c2363
BLAKE2b-256 935f62ba2c50179783d67c49cb28d1a391cc1072ccdd426b7786f38a4cbf695d

See more details on using hashes here.

File details

Details for the file libximc-2.14.13-py3-none-any.whl.

File metadata

  • Download URL: libximc-2.14.13-py3-none-any.whl
  • Upload date:
  • Size: 18.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for libximc-2.14.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a63074f00b9818e0b913e66dab2000c02afbbc1bdc8d5357dafed67d885587e4
MD5 2c9d600c729b02361a4940d7a044475b
BLAKE2b-256 80ae08bf8a180d3d26a719d1b7b40cc6c770468f0ee05707e9485f8089eb2a5e

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