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
File details
Details for the file acspy-0.0.8.tar.gz
.
File metadata
- Download URL: acspy-0.0.8.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9d07ff545e2679dbc9998d802cb8397b286e633beab58a3e43ad12d98f7fd8 |
|
MD5 | 19c4fcf7d10ecaeb38cf14b3678bc706 |
|
BLAKE2b-256 | b00e2f8e91f79110f5ffbc4d33ba1c4bac0f89509d03ad00b18ef30ee40d646e |
Provenance
The following attestation bundles were made for acspy-0.0.8.tar.gz
:
Publisher:
publish.yml
on petebachant/ACSpy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
acspy-0.0.8.tar.gz
- Subject digest:
df9d07ff545e2679dbc9998d802cb8397b286e633beab58a3e43ad12d98f7fd8
- Sigstore transparency entry: 148645940
- Sigstore integration time:
- Predicate type:
File details
Details for the file ACSpy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ACSpy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5376c194b598c25844244d6528085ab5b018742703c47e3f77a6dcff4ee6b2e5 |
|
MD5 | 1f3cbdb1e0a67693fb02d039df7878e0 |
|
BLAKE2b-256 | 9d7935579f58d0c42f08745fdd971f2f97ae32dd6e7f3c92a0d49d03888f3932 |
Provenance
The following attestation bundles were made for ACSpy-0.0.8-py3-none-any.whl
:
Publisher:
publish.yml
on petebachant/ACSpy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
acspy-0.0.8-py3-none-any.whl
- Subject digest:
5376c194b598c25844244d6528085ab5b018742703c47e3f77a6dcff4ee6b2e5
- Sigstore transparency entry: 148645942
- Sigstore integration time:
- Predicate type: