WPC Device Driver Python API
Project description
About
WPC Python-based driver contains an API for interacting with the WPC USB-DAQ, Ethernet and Wifi-DAQ series products.
Quick Start
The following is a basic example of using pywpc module to find all available devices.
>>> from wpcsys import pywpc
>>> dev = pywpc.Broadcaster()
...
Opened handle (Device finder)
>>> pywpc.PKG_FULL_NAME
...
WPC Python device driver
>>> pywpc.__version__
...
0.2.2
>>> dev.connect()
...
Binded Device finder
>>> await dev.Bcst_getDeviceInfo()
...
[['192.168.5.79', '255.255.255.0', '34:86:5d:19:06:6c', 'Wifi-DAQ-E3-A_R0.3.4']]
>>> dev.disconnect()
...
Disconnected Device finder
>>> dev.close()
...
Closed handle (Device finder)
Installation
Install wpcsys
using pip
:
$ pip install wpcsys
Requirements
- Python >= 3.10
- PyQt5(tested to work with>=5.15.7)
- matplotlib >= 3.5.2
- Numpy >= (tested to work with>=1.23.0)
- pyusb >= 1.2.1
- qasync >= 0.23.0
Products
WiFi based DAQ card
- Wifi-DAQ-E3-A
Ethernet based remote controller
- STEM (unsupported)
- STEM-Lite (unsupported)
Ethernet based motion card
- EMotion (unsupported)
Ethernet based DAQ card
- EPC (unsupported)
- Ethan-D
- Ethan-A
USB interface DAQ card
- USB-DAQ-F1-D
- USB-DAQ-F1-AD
- USB-DAQ-F1-TD
- USB-DAQ-F1-RD
- USB-DAQ-F1-CD
- USB-DAQ-F1-AOD
- USB-DAQ-F1-DSNK
Port funtion table
Model | AI | AO | DI | DO | CAN | UART | SPI | I2C | RTD | Thermocouple |
---|---|---|---|---|---|---|---|---|---|---|
Wifi-DAQ-E3-A | 1 | - | - | - | - | - | - | - | - | - |
Ethan-D | - | - | 1 | 0 | - | - | - | - | - | - |
Ethan-A | 0 | - | - | - | - | - | - | - | - | - |
USB-DAQ-F1-DSNK | - | - | 0, 1 | 2, 3 | - | - | - | - | - | - |
USB-DAQ-F1-AOD | 0 | 0 | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | - | 1, 2 | - | - |
USB-DAQ-F1-AD | 0 | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 2 | 1, 2 | - | - |
USB-DAQ-F1-D | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 1, 2 | 1, 2 | - | - |
USB-DAQ-F1-TD | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 2 | 1, 2 | - | 1 |
USB-DAQ-F1-CD | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | 1 | 1, 2 | 2 | 1, 2 | - | - |
USB-DAQ-F1-RD | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 2 | 1, 2 | 1 | - |
Take USB-DAQ-F1-AOD
for example
- port0 is available for
AI
- port2 is available for
DI
- port0 and port1 are available for
DO
- port2 is available for
UART
References
- User manual - WPC Python Device Driver
- Recommendations for new python user to create environment
- Run example code in console
License
WPC Python driver is licensed under an MIT-style license see LICENSE. Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wpcsys-0.2.3.tar.gz
(515.6 kB
view hashes)
Built Distribution
wpcsys-0.2.3-py2.py3-none-any.whl
(517.7 kB
view hashes)
Close
Hashes for wpcsys-0.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f19c00fabf1f778b5cded2553d75c7f07b7ad35bb48d46814657151e12dbe6 |
|
MD5 | 0884a9866b5bd52e7ab01539485593d3 |
|
BLAKE2b-256 | ef78ce18bfba70643a66eb5158ed18435a5e7337bb1af48a9e247fc31860a7d0 |