Skip to main content

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.

Link

WPC official site

http://www.wpc.com.tw/

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

pip install PyPI Python OS License: MIT docs Wheel

Quick Start

Easy, fast, and just works!

>>> from wpcsys import pywpc
>>> pywpc.PKG_NAME
pywpc
>>> pywpc.__version__
1.1.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

1

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wpcsys-1.1.2.tar.gz (4.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wpcsys-1.1.2-cp310-cp310-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.10Windows x86-64

wpcsys-1.1.2-cp39-cp39-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.9Windows x86-64

wpcsys-1.1.2-cp38-cp38-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file wpcsys-1.1.2.tar.gz.

File metadata

  • Download URL: wpcsys-1.1.2.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wpcsys-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d81fbd59b1e5c5fda9a345e5938d1c4b5ad7c7fcc6bea5cb13c4de747d156ba6
MD5 c41ac54f125fa38c8371e20bd8e0c3d4
BLAKE2b-256 da6c7f860e25e2739c0cf1eea595c6f39b8875b063d35fd5aeeeccbd9b3d5af6

See more details on using hashes here.

File details

Details for the file wpcsys-1.1.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: wpcsys-1.1.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wpcsys-1.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 67a5c253d740d10ecc613178151874979e3722406868feeac3987e88347f24af
MD5 d7465060a6d22dbd5190dccc5f2823ad
BLAKE2b-256 bd22c5ed645c2a2c2c3caee5c820ac2c276f6536f569fcf1597450d9f4a416e4

See more details on using hashes here.

File details

Details for the file wpcsys-1.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: wpcsys-1.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wpcsys-1.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 09bd1cf13c5c3cb614301becc260508810e9010820f90067ba8af796c5098bf0
MD5 01702f37563c74214f00dda33d5eaf31
BLAKE2b-256 bb8049f47f3ec4cf33939e837e8ea721f191c346a20a1269b6e50380a2b5f1ee

See more details on using hashes here.

File details

Details for the file wpcsys-1.1.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: wpcsys-1.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for wpcsys-1.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f082ca35ca55cb7f5ee25e661a6d0902df853dbd5fdc032313c5293e496b70e
MD5 177d4bf92f6d5cfff10855d8bac73d48
BLAKE2b-256 75f0d11b1138772ed1b6f7d6334781185265ee08007d10bbedcd2a4797491c69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page