Skip to main content

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.

Metadata

Release files for dwfpy 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dwfpy 1.2.0
File Size Uploaded
dwfpy-1.2.0.tar.gz 52.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dwfpy 1.2.0
File Interpreter ABI Platform
dwfpy-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 112.0 kB

Release files / dwfpy-1.2.0.tar.gz

Download URL dwfpy-1.2.0.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
83f2667700c84804cdeccace593442a6d49a0cd85ece88772fdcdfb9f3c331c9
BLAKE2b-256 checksum
How to use checksums
ef50b8d7789d07b18fbff278311e2060070453d95c555d43913ef5574cb1e033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / dwfpy-1.2.0-py3-none-any.whl

Download URL dwfpy-1.2.0-py3-none-any.whl
Size 59.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc313345bc1007f1e3c9ecef2ec9cc44713933b277e062fa0458bbf38c5d9c4a
BLAKE2b-256 checksum
How to use checksums
6a9fcfdfd28f507421b59db9cfd52e307bdbb96b948877132d9487d1741b7014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page