WPC Systems Python API
Project description
Overview
WPC Python driver is also known as pywpc
which contains APIs for interacting with basically WPC DAQ cards or any other WPC USB, WiFi and Ethernet based devices. It supports Python 3.8 to 3.10 in Windows 10 operating systems.
In order to optimize driver API performance, we adopt async/await structure for the driver implementation as known as non-blocking mode.
Some functions in the pywpc
package may be unavailable with earlier versions of the WPC DAQ firmware driver. Make sure it's the latest firmware version of your product. Please visit WPC Systems offical website to download WPC Device Manager and LabVIEW Run-time engine
and upgrade WPC DAQ firmware driver.
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.1
>>> 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 /path/to/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 funtion 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
- port0 is available for
AI
- port2 is available for
DI
- port0 and port1 are available for
DO
- port2 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 Distributions
Built Distribution
Hashes for chichicha-1.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c67337608df15d2affcf1695d0e90a10bb98b185d7f5770fa2146fda8a4358f |
|
MD5 | 5e09a46ab837d1cb0a4bfe91fb30e67e |
|
BLAKE2b-256 | faf4c66fa6bb6b4e54c31dea74c641e8278095f80cba8b3ad9efa82bf3ebd43c |