# pydwf
This is *pydwf*, a Python wrapper for the Digilent Waveforms library to control their line of
multi-function lab devices. It fully implements all functionality offered by the underlying
C library (over 400 functions!) in an easy-to-use Python API.
The package offers a convenient command line tool that can be used, among other things, to list
the available Digilent devices and their configurations. The package comes with documentation
(still sparse, but improving) and ready-to-run, well-written examples (already very useful),
demonstrating how to use *pydwf* to perform common measurements.
Like the DWF library, the *pydwf* package supports Windows, Linux (Intel and AMD), and macOS.
## Supported devices
The *pydwf* package has been extensively tested with the Analog Discovery 2 and Digital Discovery
devices. It should also work with other devices, like the legacy Analog Discovery, the Analog Discovery
Studio (formerly known as the *Electronics Explorer*), and the new Analog Discovery Pro devices,
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 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* package to handle the considerable amount of data travelling between the
PC and Digilent devices when doing high-speed signal generation or capture.
Some of the examples depend on the *matplotlib* library, but *pydwf* itself will work without it.
## Project hosting
The project repository and issue tracker are hosted on github:
https://github.com/sidneycadot/pydwf/
## Installation using *pip*
The installable package is hosted on PyPI:
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
```
The following command will list all Digilent devices connected to the system, and list
their configurations:
```
python -m pydwf list -c
```
## Documentation
The project documentation is hosted on *readthedocs* and 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.
Please note that the documentation is not yet complete — it's a big API!
## Examples
The Python examples can easily be installed locally after installing the 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 devices and *pydwf*.
These examples are intended as a useful starting point for your own Python scripts.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:pydwf-0.4.23.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
pydwf-0.4.23.tar.gz (41个子文件)
pydwf-0.4.23
PKG-INFO 5KB
pyproject.toml 104B
LICENSE 1KB
setup.cfg 765B
README.md 3KB
source
pydwf.egg-info
PKG-INFO 5KB
requires.txt 6B
SOURCES.txt 1KB
top_level.txt 6B
dependency_links.txt 1B
pydwf
core
DigilentWaveformsDevice.py 12KB
api
AnalogInAPI.py 72KB
sub_api.py 1KB
DeviceAPI.py 4KB
DigitalIOAPI.py 8KB
DigitalUartAPI.py 3KB
DigitalI2cAPI.py 4KB
DigitalOutAPI.py 20KB
DigitalSpiAPI.py 10KB
__init__.py 115B
DigitalInAPI.py 22KB
EnumAPI.py 12KB
AnalogIOAPI.py 10KB
AnalogImpedanceAPI.py 8KB
DigitalCanAPI.py 4KB
AnalogOutAPI.py 35KB
DigilentWaveformsLibrary.py 10KB
__init__.py 63B
auxiliary
constants.py 318B
typespec_ctypes.py 4KB
dwf_function_signatures.py 64KB
enum_types.py 12KB
__init__.py 68B
exceptions.py 1KB
utilities
open_digilent_device.py 4KB
__init__.py 253B
data
__init__.py 110B
pydwf_html_docs.py 12.36MB
pydwf_examples.py 31KB
__main__.py 7KB
__init__.py 1KB
共 41 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功