Skip to main content

No project description provided

Project description

libximc

This is python binding for libximc - cross-platform library for Standa 8SMC5-USB motor controllers.

8SMC5-based devices

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.14-3.tar.gz (18.6 MB view details)

Uploaded Source

Built Distributions

libximc-2.14.14-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

libximc-2.14.14-3-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

libximc-2.14.14-2-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

File details

Details for the file libximc-2.14.14-3.tar.gz.

File metadata

  • Download URL: libximc-2.14.14-3.tar.gz
  • Upload date:
  • Size: 18.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for libximc-2.14.14-3.tar.gz
Algorithm Hash digest
SHA256 f8e9afe813204a4d9b55e7bf6e3e3b1d57baa50f7b2011c76c3d98cc3292d425
MD5 fe983cbc8b90dd2b5382c6c4da65562d
BLAKE2b-256 071c8e3416e5341c6fb24ea0f72c24ce1471f9ebeb54bc0233c7efe0202d0a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libximc-2.14.14-py3-none-any.whl
  • Upload date:
  • Size: 19.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for libximc-2.14.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2d1ec4956f02800d7dde3809ee1e20b007a3fc9ee962569b9efb457a1370721a
MD5 91f3354d3478ca6978989c45a3cb907e
BLAKE2b-256 9e0a06a23dbc78c32c82d07e517aaa41b6740453ce26513db7c04c0a7c16ac19

See more details on using hashes here.

File details

Details for the file libximc-2.14.14-3-py3-none-any.whl.

File metadata

  • Download URL: libximc-2.14.14-3-py3-none-any.whl
  • Upload date:
  • Size: 19.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for libximc-2.14.14-3-py3-none-any.whl
Algorithm Hash digest
SHA256 e413d1a89490bd41680ac5a8814ec8b52ab94f0a225ba6780911f64bdf8c146e
MD5 2c76401e03bc2a3a692958c778c98a0d
BLAKE2b-256 f084e7fa6124c79fda306b16f29c58391f73d368b255193f0d3802c47bca08c2

See more details on using hashes here.

File details

Details for the file libximc-2.14.14-2-py3-none-any.whl.

File metadata

  • Download URL: libximc-2.14.14-2-py3-none-any.whl
  • Upload date:
  • Size: 19.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for libximc-2.14.14-2-py3-none-any.whl
Algorithm Hash digest
SHA256 f40b590f77a7d5d32d53b6a2a9483aa33eeef682f369f95e5740994065e35ba6
MD5 bfab490e71a6d65ca50d10d9021a4dae
BLAKE2b-256 8dca7c8006663c854c7525a44b400cd90f2d8dc78d44ae774d384cfa621d0fd9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page