Skip to main content

Python Bindings for Digilent WaveForms API

Project description

Digilent WaveForms for Python

The dwfpy Python package can be used to access Digilent WaveForms devices, such as the Analog Discovery 2 or the Digital Discovery.

The goal of this package is to provide users with a simple, yet powerful way of controlling Digilent WaveForms devices.

Features

  • Pythonic abstraction of Digilent Waveforms devices.
  • Low-level API with complete access to the DWF API.
  • High-level API that supports one-line configuration statements.

Example

For instance, to configure the Arbitrary Waveform Generator of an Analog Discovery 2, you can write:

import dwfpy as dwf

with dwf.AnalogDiscovery2() 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.')

Installing dwfpy

You can install the dwfpy package from PyPI via pip:

pip install dwfpy

In order to use the dwfpy package, you need Python 3.6 or higher.

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

Getting help

As of now, there is no users manual for dwfpy. You are encouraged to study the source code, and use your editors code completion features to browse the dwfpy functions and properties.

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

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.0.1.tar.gz (43.5 kB view hashes)

Uploaded Source

Built Distribution

dwfpy-1.0.1-py3-none-any.whl (51.2 kB view hashes)

Uploaded Python 3

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