No project description provided
Project description
libximc
This is python binding for libximc - cross-platform library for Standa 8SMC5-USB 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" # Serial 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
-
Libximc library documentation: https://libximc.xisupport.com/doc-en/index.html
-
Standa 8SMC5 motor controller user manual: https://doc.xisupport.com/en/8smc5-usb/
-
Standa website: https://www.standa.lt/
If you have faced any issues while using the library and you have no idea how to solve them contact technical support via:
- Website: en.xisupport.com
- E-mail: 8smc4@standa.lt
- Telegram: @SMC5TechSupport
- WhatsApp: +1 (585) 282-6387
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file libximc-2.14.17.tar.gz
.
File metadata
- Download URL: libximc-2.14.17.tar.gz
- Upload date:
- Size: 18.6 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.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 053a8b68bc3f3b644ac7f6fd2865634e85d1a18b505d460aa3d0bcb97740628e |
|
MD5 | 55b2d72271a254e5277fb695e74c6a0b |
|
BLAKE2b-256 | 1a671b736e4f0ce1215ff72d5f0a046f9af8fb60e069958e4a724102724b4d8d |
File details
Details for the file libximc-2.14.17-py3-none-any.whl
.
File metadata
- Download URL: libximc-2.14.17-py3-none-any.whl
- Upload date:
- Size: 19.2 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.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d32d599ad33009faeef84d72e4453779ccd706a947f116465763a23d006e2fa |
|
MD5 | 1e5ec8e0e90e26e2fdeac3a7aa9de6f2 |
|
BLAKE2b-256 | 116edb780baef04e205fbd06371551072a37227cb157c36c315ef236a3c1f660 |