Skip to main content

Python Bindings for Digilent WaveForms API

Project description

Python Bindings for Digilent WaveForms API

build docs

DwfPy is a Python package that allows you to access Digilent WaveForms devices via Python. It provides a low-level API with complete access to the Digilent WaveForms API, and also a simple but powerful high-level API, which allows you to configure WaveForms devices with a single statement.

For instance, to output a 1kHz sine-wave on an Analog Discovery, you can simply write:

import dwfpy as dwf

with dwf.Device() as device:
    print('Generating a 1kHz sine wave on WaveGen channel 1...')
    device.analog_output['ch1'].setup('sine', frequency=1e3, amplitude=1, start=True)
    input('Press Enter key to exit.')

Features

  • Pythonic abstraction of Digilent Waveforms API.
  • Low-level API with complete access to the Digilent Waveforms API.
  • Powerful high-level API that supports one-line configuration statements.
  • Supports all sub-modules, such as oscilloscope, arbitrary waveform generator, logic analyzer, pattern generator, digital I/O, and power supplies.
  • Works with all WaveForms devices, such as the Analog Discovery 2, the Analog Discovery 3, or the Digital Discovery.

Installing DwfPy

You can install the DwfPy package from PyPI using pip:

pip install dwfpy

In order to use the DwfPy package, you need Python 3.8 or higher.

As DwfPy builds on top of the WaveForms API, you need to install the WaveForms software, which includes the required runtime components to access the WaveForms devices.

The source code for the DwfPy package can be found at GitHub at https://github.com/mariusgreuel/dwfpy.

Examples

You can find Python examples using DwfPy in the dwfpy GitHub repository at https://github.com/mariusgreuel/dwfpy/tree/main/examples.

Documentation

You can find the DwfPy user's guide at https://dwfpy.readthedocs.io/.

Detailed information about the Digilent Waveforms API is available from the Digilent WaveForms SDK Reference Manual.

Getting help

For issues with DwfPy, please visit the dwfpy issue tracker.

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

dwfpy-1.2.0.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dwfpy-1.2.0-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file dwfpy-1.2.0.tar.gz.

File metadata

  • Download URL: dwfpy-1.2.0.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dwfpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 83f2667700c84804cdeccace593442a6d49a0cd85ece88772fdcdfb9f3c331c9
MD5 da68434ba22a2e04d1e009acd46c3491
BLAKE2b-256 ef50b8d7789d07b18fbff278311e2060070453d95c555d43913ef5574cb1e033

See more details on using hashes here.

File details

Details for the file dwfpy-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: dwfpy-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 59.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dwfpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc313345bc1007f1e3c9ecef2ec9cc44713933b277e062fa0458bbf38c5d9c4a
MD5 d9f9544d7ee150652855a78374b274f7
BLAKE2b-256 6a9fcfdfd28f507421b59db9cfd52e307bdbb96b948877132d9487d1741b7014

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