Skip to main content

Module for communicating with TDT's System 3 hardware

Project description

https://zenodo.org/badge/doi/10.5281/zenodo.17651.svg

TDTPy is a Python wrapper around Tucker-Davis Technologies ActiveX library [PDF link] (known as RPcoX) for communicating with their System 3 hardware (e.g. the RP2.1, RX6, RZ6, etc.).

In addition to the standard operations (loading circuits, configuring tags and reading/writing to hardware buffers), TDTPy offers a number of high-level features that are not included in the ActiveX library:

  • Handling type conversion between analog and digital units (e.g. converting seconds to number of DSP cycles based on the CPU frequency of the hardware).

  • Remote procedure call (RPC) server for allowing multiple processes and/or programs to communicate with the hardware across the same connection. The drivers provided by TDT do not handle concurrency issues. To handle these issues, we have created a RPC server that handles concurrency issues, allowing multiple programs to talk to the hardware simultaneously. The programs can either run on the same computer or on a separate computer.

  • If you use the RPC server, your client code can run on any platform (e.g. Mac OSX, Unix, Solaris, etc); however, the server must run on a Windows-based computer.

  • Simple reads and writes. The hardware buffers are implemented as “ring buffers” with various features such as multichannel storage and data compression. TDTPy automatically detects the configuration of the hardware buffer and returns a buffer object (DSPBuffer) that you can read/write to without having to deal with the intricacies of the hardware buffer itself.

  • Robust error handling. Some methods in the ActiveX library will fail silently (e.g. if you try to access a nonexistent tag, attempt to write more data than the hardware buffer can hold, or wire up a tag to a static port). When the RPvds circuit is first loaded to the hardware, TDTPy will inspect the microcode (i.e. the RPvds circuit) and store some information about the tags and buffers available. All subsequent operations are validated against this metadata before being passed to the ActiveX library. If an invalid operation is attempted, a DSPError is raised with the appropriate message.

The minimum required dependencies to run the software are:

  • Python >= 3.7

  • NumPy >= 1.8

  • pywin32

License

TDTPy is distributed under the BSD license.

Contributors

  • Brad Buran (New York University, Oregon Health & Science University)

  • Eric Larson (University of Washington)

  • Decibel Therapeutics, Inc.

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

TDTPy-0.10.3.tar.gz (830.5 kB view details)

Uploaded Source

Built Distribution

TDTPy-0.10.3-py3-none-any.whl (496.1 kB view details)

Uploaded Python 3

File details

Details for the file TDTPy-0.10.3.tar.gz.

File metadata

  • Download URL: TDTPy-0.10.3.tar.gz
  • Upload date:
  • Size: 830.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for TDTPy-0.10.3.tar.gz
Algorithm Hash digest
SHA256 c79a9c4b5b0f479f2c4ac88ae0b02ec7e68bcc5f40d80d6fa7ba82e09b660d40
MD5 059518212bb966e4a0af829560610875
BLAKE2b-256 186d60d3818e175b1e4b6310228849783ff50a3fd6eddd713ae4a71e4bfe210d

See more details on using hashes here.

File details

Details for the file TDTPy-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: TDTPy-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 496.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for TDTPy-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa8cfe4537673a7dd8ef9eeeaae81a7e388b023e0b60566468e597ddc02a319
MD5 6e8ca43c555b3c191502f5a13f74d394
BLAKE2b-256 2a3a35302549abcf26a139620d828b6ebe5b49fb904547e3e0c2f44d08e5bde3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page