Skip to main content

A Python package for working with ACS motion controllers.

Installation

Execute

pip install acspy

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.4.zip (11.4 kB view details)

Uploaded Source

File details

Details for the file ACSpy-0.0.4.zip.

File metadata

  • Download URL: ACSpy-0.0.4.zip
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ACSpy-0.0.4.zip
Algorithm Hash digest
SHA256 ca991e08b1458536bb5f03271617d5ce6beefd36aedccf04fbf3eadf944ae622
MD5 ddcd55257bdd3916a2bac2d7d101f65f
BLAKE2b-256 5256a8db8408a5af442e6f0d13d016af423f405fa8879c30138e1627f5cd6e10

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