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', 'EthanI', 'EthanL', 'EthanO', 'EthanT', '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-I

  • Ethan-L

  • Ethan-O

  • Ethan-T

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

TC

Ethan-A

0

Ethan-D

1

0

Ethan-I

0

Ethan-L

0

Ethan-O

0

Ethan-T

1

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.6.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.6-cp310-cp310-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.9Windows x86-64

wpcsys-2.1.6-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.6.tar.gz.

File metadata

  • Download URL: wpcsys-2.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 5298ad2333a47824cac85c57847ebedf7638f874919d5601be640c54ea61c82d
MD5 73c31913c8d88b9c676cbbc3a9568483
BLAKE2b-256 352b4010921c5b052e5c01691d235f7befcd3a24a56b42c9a537399bf127575c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.6-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.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef9e58c2084f4e1f0dd788a3e33a9daf4fd6a63d1442947f10925b1d7c27cd68
MD5 165642b7ec18c608cc8d0d003b141a0a
BLAKE2b-256 af9c5149dc79b3428825d48b16893d3c0b8e6e54da210596cdc8466d19de4a89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.6-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.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eb73801232892f6e6c5a29604b4827188ec53e76a920a9aa2ad903c911fd2945
MD5 64fc407cf647b62cf526a4186f32ca59
BLAKE2b-256 4741b7f8a15a0c1a4883c3dce547b05e39f4a559cb1cede61be0af579bbe81a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.1.6-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.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c9d4687a8c16f8819625fb87aa3c6b517a670fd3b3658690d0a21ca1b69785b5
MD5 6fd7a19798a19f17a78687aeaa425728
BLAKE2b-256 6b08f3dcb8cb72640436fc445ebac09393bb83aa6e8b82ecba4f23ad15f57d46

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