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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e71488da89d6b780a778fc79f4089489327c887ad6a593f72fcdd71effc086a5
|
|
| MD5 |
0f1bb7e004af90a998938436ea61565d
|
|
| BLAKE2b-256 |
2a9e677d460da6fa39385b1039c851e4f923ff991912dc0fbc67e36a8a6fc3f0
|
Provenance
The following attestation bundles were made for acspy-0.0.9.tar.gz:
Publisher:
publish.yml on petebachant/ACSpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
acspy-0.0.9.tar.gz -
Subject digest:
e71488da89d6b780a778fc79f4089489327c887ad6a593f72fcdd71effc086a5 - Sigstore transparency entry: 164440061
- Sigstore integration time:
-
Permalink:
petebachant/ACSpy@7c8df837ffae9903660eebba20c315db475a952d -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/petebachant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c8df837ffae9903660eebba20c315db475a952d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20d2dd0ffbf7e002f076d4a3582ec4734176e3cd13acb762beea014cc9caf73f
|
|
| MD5 |
bd2af12bb6604a947af472dab27b43ea
|
|
| BLAKE2b-256 |
989534ca2f73fbe82cb0f7ba5180d89c1169662329bde0f70b287ccd1a3a9bb3
|
Provenance
The following attestation bundles were made for ACSpy-0.0.9-py3-none-any.whl:
Publisher:
publish.yml on petebachant/ACSpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
acspy-0.0.9-py3-none-any.whl -
Subject digest:
20d2dd0ffbf7e002f076d4a3582ec4734176e3cd13acb762beea014cc9caf73f - Sigstore transparency entry: 164440062
- Sigstore integration time:
-
Permalink:
petebachant/ACSpy@7c8df837ffae9903660eebba20c315db475a952d -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/petebachant
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7c8df837ffae9903660eebba20c315db475a952d -
Trigger Event:
release
-
Statement type: