Skip to main content

Package for working with ACS motion controllers.

Project description

A Python package for working with [ACS motion controllers](https://www.acsmotioncontrol.com/). Note that this project is not affiliated with or endorsed by ACS Motion Control.

Installation

Note that the ACS motion control SPiiPlus User-Mode Driver must be installed and running. Contact ACS to obtain this software.

This Python package can be installed from PyPI via pip with

pip install acspy

To install from the source, clone locally and execute

python setup.py install

Usage

### Using the acsc module

The acsc module is designed to mimic the syntax of the ACS C library that it wraps.

`python >>> from acspy import acsc >>> hcomm = acsc.openCommDirect() >>> acsc.enable(hcomm, 0) >>> acsc.getMotorState(hcomm, 0) {'moving': False, 'enabled': True, 'in position': True, 'accelerating': False} >>> acsc.closeComm(hcomm) `

### Using the Controller object

The control module provides an object-oriented interface to the controller, making code development more intuitive. An example of its use:

`python >>> from acspy.control import Controller >>> controller = Controller(contype="simulator", n_axes=4) >>> controller.connect() >>> axis0 = controller.axes[0] >>> axis0.enable() >>> axis0.enabled True >>> axis0.ptp(500.5) >>> axis0.rpos 500.5 >>> axis0.disable() >>> controller.disconnect() `

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

ACSpy-0.0.6.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

ACSpy-0.0.6-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file ACSpy-0.0.6.tar.gz.

File metadata

  • Download URL: ACSpy-0.0.6.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ACSpy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 333766741cb2cfbf913adc4ad6a81e0dd86e3fa8c7a7966d6f396a466b86ba17
MD5 01144ed0852728ce61aa4f513e9e1ead
BLAKE2b-256 202d7d10d33764270f7ce8681b3a08530e2cba29a992f8b53fc2701c11c178bb

See more details on using hashes here.

File details

Details for the file ACSpy-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ACSpy-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ACSpy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2255ff1a889f02ebc638fcee9e1c2d6ee03fe64fdb564d843675014325872ebc
MD5 1be436dd628da217e6a925da6aea44d5
BLAKE2b-256 ac13c05196c3628d76b5907730e1eb813572a18ff164e08306ffeef7f516acec

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