WPC Python driver APIs, the easiest way to Control & Data Acquisition (DAQ)
Project description
Overview
WPC Python driver, also known as pywpc
, contains APIs for interacting with basically WPC DAQ cards or any other WPC USB, WiFi and Ethernet based devices. It supports Python version from 3.8 to 3.10 under Windows 10 operating systems.
In order to optimize the performance of driver API, we adopt async/await structure for driver implementation also known as non-blocking method.
Some API functions in the pywpc
package may not compatible with earlier versions of WPC DAQ firmware. To update device firmware to the latest version, please use WPC Device Manager and LabVIEW Run-time engine.
You can download WPC Device Manager by latest release or visit WPC Systems Ltd. official website.
Note
Make sure the latest version of firmware is up to date with your products.
Link | |
---|---|
WPC official site | http://www.wpc.com.tw/ |
User guide | https://wpc-systems-ltd.github.io/WPC_Python_driver_release/ |
Example code | https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/tree/main/Examples |
Quick Start
Easy, fast, and just works!
>>> from wpcsys import pywpc
>>> pywpc.PKG_NAME
pywpc
>>> pywpc.__version__
1.0.2
>>> pywpc.product
['DeviceFinder', 'WifiDAQE3A', 'EthanD', 'EthanA', 'USBDAQF1D', 'USBDAQF1AD', 'USBDAQF1DSNK', 'USBDAQF1AOD', 'USBDAQF1TD', 'USBDAQF1CD', 'USBDAQF1RD']
Installation
Install wpcsys using pip
:
$ pip install wpcsys
Upgrade
Upgrade wpcsys using pip
:
$ pip install --upgrade wpcsys
Requirements
Python 3.8 or later with all requirements.txt dependencies installed, including PyQt5, PyQt5Designer, qasync and so on.
$ pip install -r requirements.txt
Products
Ethernet based DAQ card
- Ethan-A
- Ethan-D
USB interface DAQ card
- USB-DAQ-F1-D (Digital)
- USB-DAQ-F1-DSNK (24V Digital)
- USB-DAQ-F1-AD (Digital + AI)
- USB-DAQ-F1-TD (Digital + Thermocouple)
- USB-DAQ-F1-RD (Digital + RTD)
- USB-DAQ-F1-CD (Digital + CAN)
- USB-DAQ-F1-AOD (Digital + AI + AO)
Wifi based DAQ card
- Wifi-DAQ-E3-A
Port function table
Model | AI | AO | DI | DO | CAN | UART | SPI | I2C | RTD | Thermocouple |
---|---|---|---|---|---|---|---|---|---|---|
Ethan-A | 0 | - | - | - | - | - | - | - | - | - |
Ethan-D | - | - | 1 | 0 | - | - | - | - | - | - |
USB-DAQ-F1-D | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 1, 2 | 1, 2 | - | - |
USB-DAQ-F1-DSNK | - | - | 0, 1 | 2, 3 | - | - | - | - | - | - |
USB-DAQ-F1-AD | 0 | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 2 | 1, 2 | - | - |
USB-DAQ-F1-TD | - | - | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | 2 | 1, 2 | - | 1 |
USB-DAQ-F1-RD | - | - | 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-AOD | 0 | 0 | 0, 1, 2, 3 | 0, 1, 2, 3 | - | 1, 2 | - | 1, 2 | - | - |
Wifi-DAQ-E3-A | 1 | - | - | - | - | - | - | - | - | - |
Take USB-DAQ-F1-AOD
for example:
- Port 0 is available for
AI
- Port 2 is available for
DI
- Ports 0 & 1 are available for
DO
- Port 2 is available for
UART
References
- Useful conda commands
- User manual - WPC Python driver
- Run example code in console
- How to build your own Python code to EXE file
- How to install miniconda and build your own virtual environment
License
WPC Python driver release 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
Built Distributions
Hashes for wpcsys-1.0.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec91f526af5be1a2df2c3f44245672b591ba532426139a43acac85cc02916704 |
|
MD5 | a73c6e45346c3cd8b4aa4d05629da22e |
|
BLAKE2b-256 | 6a23d83115a6c78a32e1ecd83a557161fb3c8e1d8c6c05f0822351c8e4710d7f |
Hashes for wpcsys-1.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56843586e7df66e2b28b2149107033dab946508ab372421f873ad01b5a03bb53 |
|
MD5 | 16fa81518f7f094e26f0b763f1c73f35 |
|
BLAKE2b-256 | 61482f136efa6fd5b83c69f4a01efa4ce66e0f7744e748d01df0932d446971ec |
Hashes for wpcsys-1.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af04dcf09d8732702fc64b6f8e75598fbcb6e22999eb70413a97e839fdf92d3 |
|
MD5 | 80a485b0d00cb76518d359583e14a90a |
|
BLAKE2b-256 | 3779661eda866e2cebf2f6c65bc9946dc9ad56f2a9d4a47ba6df5e02461d8e03 |