Skip to main content

Module for communicating with TDT's System 3 hardware

Project description

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.

TDTPy is distributed under the BSD license.

Source code: http://github.com/LABSN/tdtpy

Documentation: http://tdtpy.readthedocs.org

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

Uploaded Source

Built Distribution

TDTPy-0.7.win32.exe (553.3 kB view details)

Uploaded Source

File details

Details for the file TDTPy-0.7.zip.

File metadata

  • Download URL: TDTPy-0.7.zip
  • Upload date:
  • Size: 374.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TDTPy-0.7.zip
Algorithm Hash digest
SHA256 3902eaaf16288b042e0058c85102e0aa3b75ee2190076bfbfb060e0e9381a6b4
MD5 c01dd90abb7da1229289660b9be81665
BLAKE2b-256 409591522d517dad83afd18240b76a48cdfaab711e210b22f532eb33668c1547

See more details on using hashes here.

Provenance

File details

Details for the file TDTPy-0.7.win32.exe.

File metadata

  • Download URL: TDTPy-0.7.win32.exe
  • Upload date:
  • Size: 553.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TDTPy-0.7.win32.exe
Algorithm Hash digest
SHA256 d5728fba4b48abb499422fb936dd1d7048fe3bbc57f0ef955083c543600ce207
MD5 27e075f2c4a711fd3e5aa828d7bec738
BLAKE2b-256 12211417176a1e71cd340e52d4fedf6389a30f4aa7c4c498fbbb0f323b586ed5

See more details on using hashes here.

Provenance

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