pydwf


Namepydwf JSON
Version 1.1.19 PyPI version JSON
download
home_pagehttps://pypi.org/project/pydwf/
SummaryA package to control Digilent Waveforms devices
upload_time2023-10-18 07:33:31
maintainer
docs_urlNone
authorSidney Cadot
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pydwf

This is the README of *pydwf*, a Python package to control the Digilent Waveforms lineup of electronic test and measurement devices made by [Digilent](https://store.digilentinc.com/).

It wraps all functions of *libdwf*, the [low-level C library](https://pydwf.readthedocs.io/en/latest/background/C_Library.html) provided by Digilent, in an easy-to-use, class-based Python API. Like the C library, the *pydwf* package supports Windows, Linux (Intel and ARM), and macOS. The *libdwf* library is automatically installed as part of Digilent's *Waveforms* software, which can be downloaded from [here](https://digilent.com/shop/software/digilent-waveforms/download/) (official link, with mandatory email harvesting) or [here](https://lp.digilent.com/complete-waveforms-download/) (non-official link, without email harvesting).

The current release of *pydwf* is version 1.1.19.
It is based on version 3.20.1 of *libdwf*, but it should also work with other versions.

The *pydwf* package comes with documentation and a number of ready-to-run [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) that demonstrate how *pydwf* can be used to perform common and not-so-common tasks.

A [command-line tool](https://pydwf.readthedocs.io/en/latest/background/CommandLineTool.html) is provided that can be used, among other things, to list the available Digilent Waveforms devices and their configurations.

This README file contains information about the project. Readers who want to learn how to use *pydwf* are referred to the [API documentation](https://pydwf.readthedocs.io/en/latest/pydwf_api/pydwf_overview.html).

## Supported devices

The following devices can be controlled using *pydwf*:

* [Electronics Explorer](https://digilent.com/reference/test-and-measurement/electronics-explorer/start) (legacy)
* [Analog Discovery](https://digilent.com/reference/test-and-measurement/analog-discovery/start) (legacy)
* [Analog Discovery 2](https://digilent.com/reference/test-and-measurement/analog-discovery-2/start)
* [Analog Discovery 3](https://digilent.com/reference/test-and-measurement/analog-discovery-3/start)
* [Digital Discovery](https://digilent.com/reference/test-and-measurement/digital-discovery/start)
* [Analog Discovery Studio](https://digilent.com/reference/test-and-measurement/analog-discovery-studio/start)
* [DSP3340 Discovery USB power supply](https://digilent.com/reference/test-and-measurement/discovery-power-supply-3340/start)
* [Analog Discovery Pro 3x50](https://digilent.com/reference/test-and-measurement/analog-discovery-pro-3x50/start) (3250 and 3450 models)
* [Analog Discovery Pro 5250](https://digilent.com/reference/test-and-measurement/analog-discovery-pro-5250/start) (a National Instruments VB-8012 rebranded as a Digilent device; Windows only)

The *pydwf* package has been extensively tested with the Analog Discovery 2, Digital Discovery, and ADP3450 devices. It should also work with the other devices listed, but these haven't been tested. If you have such a device and encounter problems, please report an issue on the [GitHub issue tracker](https://github.com/sidneycadot/pydwf/issues).

## Dependencies

The *pydwf* package requires Python 3.6 or higher.

In order for *pydwf* to work, recent versions of the Digilent Adept and Digilent Waveforms packages must be installed. These provide the C libraries that *pydwf* uses to interact with devices. Generally speaking, if the Waveforms GUI application provided by Digilent works on your system, you're good to go.

*pydwf* depends on the [numpy](https://numpy.org/) package to handle the considerable amount of data transferred between the PC and Digilent devices when performing high-speed signal generation or capture operations.

Some of the [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) depend on the [matplotlib](https://matplotlib.org/) package, but *pydwf* itself will work without it.

## Project hosting

The project repository and issue tracker are hosted on [GitHub](https://github.com/):

https://github.com/sidneycadot/pydwf/

## Installation using *pip*

The installable package is hosted on [PyPI](https://pypi.org/):

https://pypi.org/project/pydwf/

This allows installation using the standard *pip* (or *pip3*) tool:

```
pip install pydwf
```

After installing *pydwf*, the following command will show the version of *pydwf* and the underlying DWF library:

```
python -m pydwf version
```

After installing *pydwf*. the following command will list all Digilent Waveforms devices connected to the system and, for each of them, list the supported configurations:

```
python -m pydwf list -c
```

## Documentation

The project documentation is hosted on [Read the Docs](https://readthedocs.org/). The latest version can be reached via the following link:

https://pydwf.readthedocs.io/en/latest/

If desired, the documentation can also be installed locally after installing the package by executing the following command:

```
python -m pydwf extract-html-docs
```

This will create a local directory called *pydwf-docs-html* containing the project documentation in HTML format.

Alternatively, a PDF version of the manual can be extracted as well:

```
python -m pydwf extract-pdf-manual
```

## Examples

The Python [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) can be installed locally after installing the *pydwf* package by executing the following command:

```
python -m pydwf extract-examples
```

This will create a local directory called *pydwf-examples* containing the Python examples that demonstrate many of the capabilities of the Digilent Waveforms devices and *pydwf*.

These examples are intended as a useful starting point for your own Python scripts. See the [Examples overview](https://pydwf.readthedocs.io/en/latest/background/Examples.html) for more information.

## Acknowledgements

Many thanks to Digilent for making the awesome Waveforms devices, and to provide not only the very capable *Waveforms* GUI software, but also the cross-platform SDK on which *pydwf* is based. Great work!

My company [Jigsaw B.V.](https://www.jigsaw.nl/) supported the effort to make *pydwf*. If you need any kind of high-tech software (with or without Digilent Waveforms devices), and you’re somewhat in the vicinity of Delft, The Netherlands, [give us a call](https://jigsaw.nl/#Contact).

Thanks to my longtime friend Pepijn for proof-reading the documentation and providing his perspective on several issues that came up while implementing *pydwf*. The package is a lot better because of your help.

Lastly, thanks to Petra for your patience with having all kinds of electronics equipment in the living room while developing this package (and before, and after, …). You may not share my enthusiasm for this particular hobby, but I am very fortunate that you are at least enthusiastic about my enthusiasm, if that makes sense.

*— SC*

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/pydwf/",
    "name": "pydwf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Sidney Cadot",
    "author_email": "sidney@jigsaw.nl",
    "download_url": "https://files.pythonhosted.org/packages/f7/73/f5d65c3e6102926868164134425d01a99ba32d1b6ab386d6bc683f8f9138/pydwf-1.1.19.tar.gz",
    "platform": null,
    "description": "# pydwf\n\nThis is the README of *pydwf*, a Python package to control the Digilent Waveforms lineup of electronic test and measurement devices made by [Digilent](https://store.digilentinc.com/).\n\nIt wraps all functions of *libdwf*, the [low-level C library](https://pydwf.readthedocs.io/en/latest/background/C_Library.html) provided by Digilent, in an easy-to-use, class-based Python API. Like the C library, the *pydwf* package supports Windows, Linux (Intel and ARM), and macOS. The *libdwf* library is automatically installed as part of Digilent's *Waveforms* software, which can be downloaded from [here](https://digilent.com/shop/software/digilent-waveforms/download/) (official link, with mandatory email harvesting) or [here](https://lp.digilent.com/complete-waveforms-download/) (non-official link, without email harvesting).\n\nThe current release of *pydwf* is version 1.1.19.\nIt is based on version 3.20.1 of *libdwf*, but it should also work with other versions.\n\nThe *pydwf* package comes with documentation and a number of ready-to-run [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) that demonstrate how *pydwf* can be used to perform common and not-so-common tasks.\n\nA [command-line tool](https://pydwf.readthedocs.io/en/latest/background/CommandLineTool.html) is provided that can be used, among other things, to list the available Digilent Waveforms devices and their configurations.\n\nThis README file contains information about the project. Readers who want to learn how to use *pydwf* are referred to the [API documentation](https://pydwf.readthedocs.io/en/latest/pydwf_api/pydwf_overview.html).\n\n## Supported devices\n\nThe following devices can be controlled using *pydwf*:\n\n* [Electronics Explorer](https://digilent.com/reference/test-and-measurement/electronics-explorer/start) (legacy)\n* [Analog Discovery](https://digilent.com/reference/test-and-measurement/analog-discovery/start) (legacy)\n* [Analog Discovery 2](https://digilent.com/reference/test-and-measurement/analog-discovery-2/start)\n* [Analog Discovery 3](https://digilent.com/reference/test-and-measurement/analog-discovery-3/start)\n* [Digital Discovery](https://digilent.com/reference/test-and-measurement/digital-discovery/start)\n* [Analog Discovery Studio](https://digilent.com/reference/test-and-measurement/analog-discovery-studio/start)\n* [DSP3340 Discovery USB power supply](https://digilent.com/reference/test-and-measurement/discovery-power-supply-3340/start)\n* [Analog Discovery Pro 3x50](https://digilent.com/reference/test-and-measurement/analog-discovery-pro-3x50/start) (3250 and 3450 models)\n* [Analog Discovery Pro 5250](https://digilent.com/reference/test-and-measurement/analog-discovery-pro-5250/start) (a National Instruments VB-8012 rebranded as a Digilent device; Windows only)\n\nThe *pydwf* package has been extensively tested with the Analog Discovery 2, Digital Discovery, and ADP3450 devices. It should also work with the other devices listed, but these haven't been tested. If you have such a device and encounter problems, please report an issue on the [GitHub issue tracker](https://github.com/sidneycadot/pydwf/issues).\n\n## Dependencies\n\nThe *pydwf* package requires Python 3.6 or higher.\n\nIn order for *pydwf* to work, recent versions of the Digilent Adept and Digilent Waveforms packages must be installed. These provide the C libraries that *pydwf* uses to interact with devices. Generally speaking, if the Waveforms GUI application provided by Digilent works on your system, you're good to go.\n\n*pydwf* depends on the [numpy](https://numpy.org/) package to handle the considerable amount of data transferred between the PC and Digilent devices when performing high-speed signal generation or capture operations.\n\nSome of the [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) depend on the [matplotlib](https://matplotlib.org/) package, but *pydwf* itself will work without it.\n\n## Project hosting\n\nThe project repository and issue tracker are hosted on [GitHub](https://github.com/):\n\nhttps://github.com/sidneycadot/pydwf/\n\n## Installation using *pip*\n\nThe installable package is hosted on [PyPI](https://pypi.org/):\n\nhttps://pypi.org/project/pydwf/\n\nThis allows installation using the standard *pip* (or *pip3*) tool:\n\n```\npip install pydwf\n```\n\nAfter installing *pydwf*, the following command will show the version of *pydwf* and the underlying DWF library:\n\n```\npython -m pydwf version\n```\n\nAfter installing *pydwf*. the following command will list all Digilent Waveforms devices connected to the system and, for each of them, list the supported configurations:\n\n```\npython -m pydwf list -c\n```\n\n## Documentation\n\nThe project documentation is hosted on [Read the Docs](https://readthedocs.org/). The latest version can be reached via the following link:\n\nhttps://pydwf.readthedocs.io/en/latest/\n\nIf desired, the documentation can also be installed locally after installing the package by executing the following command:\n\n```\npython -m pydwf extract-html-docs\n```\n\nThis will create a local directory called *pydwf-docs-html* containing the project documentation in HTML format.\n\nAlternatively, a PDF version of the manual can be extracted as well:\n\n```\npython -m pydwf extract-pdf-manual\n```\n\n## Examples\n\nThe Python [examples](https://pydwf.readthedocs.io/en/latest/background/Examples.html) can be installed locally after installing the *pydwf* package by executing the following command:\n\n```\npython -m pydwf extract-examples\n```\n\nThis will create a local directory called *pydwf-examples* containing the Python examples that demonstrate many of the capabilities of the Digilent Waveforms devices and *pydwf*.\n\nThese examples are intended as a useful starting point for your own Python scripts. See the [Examples overview](https://pydwf.readthedocs.io/en/latest/background/Examples.html) for more information.\n\n## Acknowledgements\n\nMany thanks to Digilent for making the awesome Waveforms devices, and to provide not only the very capable *Waveforms* GUI software, but also the cross-platform SDK on which *pydwf* is based. Great work!\n\nMy company [Jigsaw B.V.](https://www.jigsaw.nl/) supported the effort to make *pydwf*. If you need any kind of high-tech software (with or without Digilent Waveforms devices), and you\u2019re somewhat in the vicinity of Delft, The Netherlands, [give us a call](https://jigsaw.nl/#Contact).\n\nThanks to my longtime friend Pepijn for proof-reading the documentation and providing his perspective on several issues that came up while implementing *pydwf*. The package is a lot better because of your help.\n\nLastly, thanks to Petra for your patience with having all kinds of electronics equipment in the living room while developing this package (and before, and after, \u2026). You may not share my enthusiasm for this particular hobby, but I am very fortunate that you are at least enthusiastic about my enthusiasm, if that makes sense.\n\n*\u2014 SC*\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A package to control Digilent Waveforms devices",
    "version": "1.1.19",
    "project_urls": {
        "Documentation": "https://pydwf.readthedocs.io/en/latest/",
        "Homepage": "https://pypi.org/project/pydwf/",
        "Source Repository": "https://github.com/sidneycadot/pydwf/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fdd0caf463b8d01b293c95c18dee47d20ab8c49ba1b05c490c62fea0b8d5fb8f",
                "md5": "20580c679352ca9dd23cd715db825067",
                "sha256": "aefd97cfb8d315d2c4daf623682ae9e235a4f7483618c01e3f9362588663f9f2"
            },
            "downloads": -1,
            "filename": "pydwf-1.1.19-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "20580c679352ca9dd23cd715db825067",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7280332,
            "upload_time": "2023-10-18T07:33:27",
            "upload_time_iso_8601": "2023-10-18T07:33:27.091183Z",
            "url": "https://files.pythonhosted.org/packages/fd/d0/caf463b8d01b293c95c18dee47d20ab8c49ba1b05c490c62fea0b8d5fb8f/pydwf-1.1.19-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f773f5d65c3e6102926868164134425d01a99ba32d1b6ab386d6bc683f8f9138",
                "md5": "89d2becf64481bd1d1a0e098256a6cfd",
                "sha256": "9b953fa0d9758c0004d80b868ab86be326583a5a4d854065f3a565362715f81b"
            },
            "downloads": -1,
            "filename": "pydwf-1.1.19.tar.gz",
            "has_sig": false,
            "md5_digest": "89d2becf64481bd1d1a0e098256a6cfd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7270210,
            "upload_time": "2023-10-18T07:33:31",
            "upload_time_iso_8601": "2023-10-18T07:33:31.238042Z",
            "url": "https://files.pythonhosted.org/packages/f7/73/f5d65c3e6102926868164134425d01a99ba32d1b6ab386d6bc683f8f9138/pydwf-1.1.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-18 07:33:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sidneycadot",
    "github_project": "pydwf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pydwf"
}
        
Elapsed time: 0.13064s