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.9.tar.gz (9.3 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.9-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file acspy-0.0.9.tar.gz.

File metadata

  • Download URL: acspy-0.0.9.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for acspy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e71488da89d6b780a778fc79f4089489327c887ad6a593f72fcdd71effc086a5
MD5 0f1bb7e004af90a998938436ea61565d
BLAKE2b-256 2a9e677d460da6fa39385b1039c851e4f923ff991912dc0fbc67e36a8a6fc3f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for acspy-0.0.9.tar.gz:

Publisher: publish.yml on petebachant/ACSpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ACSpy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ACSpy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 20d2dd0ffbf7e002f076d4a3582ec4734176e3cd13acb762beea014cc9caf73f
MD5 bd2af12bb6604a947af472dab27b43ea
BLAKE2b-256 989534ca2f73fbe82cb0f7ba5180d89c1169662329bde0f70b287ccd1a3a9bb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ACSpy-0.0.9-py3-none-any.whl:

Publisher: publish.yml on petebachant/ACSpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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