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.

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

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.HANDLE_LIST
['DeviceFinder', 'WifiDAQE3A', 'WifiDAQF4A', 'STEM', 'EMotion', 'EDrive_ST', '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

Controller

  • STEM

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

  • Wifi-DAQ-F4-A

I/O port function table

  • EMotion & Motor driver series

Product/module

Motion

Drive

EMotion

0

Edrive-ST

0

  • STEM series

Product/module

AI

AO

DI

DO

EMotion

1,2,4

1,2,4

0~7

0~7

In the STEM product, the values 1, 2, and 4 are used to represent the slots in the AIO. Additionally, the DIO ports 0 to 1 are assigned to slot 1, while ports 2 to 3 are assigned to slot 2.

  • Ethan & Wifi series

Product/module

AI

AO

DI

DO

Emotion

Ethan-A

0

Ethan-D

1

0

Ethan-L

0

Ethan-O

0

Wifi-DAQ-E3-A

0

Wifi-DAQ-F4-A

0

  • USB series

Product/module

AI

AO

DI

DO

CAN

UART

SPI

I2C

RTD

TC

USB-DAQ-F1-D

0~3

0~3

1, 2

1, 2

1, 2

USB-DAQ-F1-DSNK

0, 1

2, 3

USB-DAQ-F1-AD

0

0~3

0~3

1, 2

2

1, 2

USB-DAQ-F1-TD

0~3

0~3

1, 2

2

1, 2

1

USB-DAQ-F1-RD

0~3

0~3

1, 2

2

1, 2

1

USB-DAQ-F1-CD

0~3

0~3

1

1, 2

2

1, 2

USB-DAQ-F1-AOD

0

0

0~3

0~3

1, 2

1, 2

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-2.1.5.tar.gz (7.6 MB view details)

Uploaded Source

Built Distributions

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

wpcsys-2.1.5-cp310-cp310-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.10Windows x86-64

wpcsys-2.1.5-cp39-cp39-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.9Windows x86-64

wpcsys-2.1.5-cp38-cp38-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for wpcsys-2.1.5.tar.gz
Algorithm Hash digest
SHA256 c9d35b85b8db3bb83760b6becd6e976b20a0d01d29b0595e4cdae46986498edf
MD5 17c58c91aec55875ab42b71e0e7d6534
BLAKE2b-256 95fc1c6e5dee8ce3b77a835cb0f8dbc7935ecf431283d023ba817fef5a3115f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 7.6 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-2.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b8c2632ee719cc131b9b476c1c6218543dc00680fa5c07583c1ead48913c253e
MD5 b099ec5db0302d168eba3e56769547d9
BLAKE2b-256 d9da1c37581a33a3588b43201f53ad3a2fb32d69096199371b494aaf11d2eea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 7.6 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-2.1.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 877c82b75b8baa85c3881e5fc3a41d553d056f8ff2c0addcc8968710897f47ef
MD5 a829db75a6ea048567bc20f9631049d3
BLAKE2b-256 e3a9ff2667c4cb9f3d8e6a745cd58d538e75f7e0e0c463ed8289dc78a25ab480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 7.6 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-2.1.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2b749390d8924acca79b73c64068dcabc7a555fca58553c0962989f1cfe14aa6
MD5 582b2b42f341a5bf6b7cc2e6937405a9
BLAKE2b-256 4adda158a7bbaa9522bb6cdff669771a12ad26c5e3bc71de834b7a6e48eab957

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