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.
Our APIs support synchronous and asynchronous modes for computer processes or threads.
Synchronous mode means that two or more processes run in a step-by-step manner, one after the other.In this mode, the execution of a process is blocked until the previous process is completed.
Asynchronous mode means that processes run independently of each other and don’t wait for the completion of the previous process. Instead, each process runs on its own, without blocking the execution of other processes.
In general, synchronous mode is easier to understand and debug, while asynchronous mode is more scalable and allows for greater concurrency.
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.
Link |
|
---|---|
WPC official site |
|
GitHub |
https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release |
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__ 2.0.2 >>> pywpc.HANDLE_LIST ['DeviceFinder', 'DataLogger', 'WifiDAQE3A', 'EMotion', 'EthanA', 'EthanD', 'EthanL', 'EthanO', 'USBDAQF1D', 'USBDAQF1DSNK', 'USBDAQF1AD', 'USBDAQF1AOD', 'USBDAQF1TD', 'USBDAQF1RD', 'USBDAQF1CD']
Install and Upgrade
Install
pip install wpcsys
Upgrade
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 motion card
EMotion
Ethernet based DAQ card
Ethan-A
Ethan-D
Ethan-L
Ethan-O
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
I/O Function Table
Model |
AI |
AO |
DI |
DO |
CAN |
UART |
SPI |
I2C |
RTD |
TC |
Motion |
Emotion |
0 |
||||||||||
Ethan-A |
0 |
||||||||||
Ethan-D |
1 |
0 |
|||||||||
Ethan-L |
0 |
||||||||||
Ethan-O |
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 |
Remark: TC stands for Thermocouple
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
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-2.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a90b9ee1e5e2b80871e994c78a5dc7eb2757745ae9f35163a77cf9bf64f482 |
|
MD5 | d1f061d18120cb51f89fbf50601b3e04 |
|
BLAKE2b-256 | 43d73e728313f51615ab333f80c8c1de74af6c86a103a15bd766f872ddefbcd4 |
Hashes for wpcsys-2.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d6f3e18c2bff984223fb6a89ca8081d922026f56faf5dbd929f6fa57ffff68 |
|
MD5 | f691f5beb388061c228a7725a174be3f |
|
BLAKE2b-256 | ae4726564d1c9f6c5c5ff6fc12ea71fcc74b74efe5bd8d4b40528db4585c7e2b |
Hashes for wpcsys-2.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fde98344225b0c349f298fa3aa46bdb5a60a7b24a2be252c1b2c2074c83867 |
|
MD5 | f6e82c808b1c515ec20000c2c6efbaa8 |
|
BLAKE2b-256 | dbd957c12cc295d5a34bc77e7010c759e8ed0a97cd7664bf10089d17a212b87d |