Skip to main content

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() `

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ACSpy-0.0.7.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ACSpy-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7e62ad9e33a2bd054a0ec156724ffad47d6658fedb993748c387184eaf903645
MD5 184faf2fca15564eb954e9f9e06fb4bb
BLAKE2b-256 8199a96988b450ec20e66024f99312be637f850730979eb59f09d179dbf6c8d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ACSpy-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ACSpy-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e71a505c646b6272ee197fc0139e85b32aafca8c4f37820519f64d29b33b3571
MD5 4c301ab011f2577303ffbd657da6b2f4
BLAKE2b-256 5cd2f6615cfa352679357c2a4af247109e2cf7a6f4bbe44494c33c79e1bde752

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