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.__version__
2.0.1
>>> 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


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.0.1.tar.gz (6.8 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.0.1-cp310-cp310-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.10Windows x86-64

wpcsys-2.0.1-cp39-cp39-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.9Windows x86-64

wpcsys-2.0.1-cp38-cp38-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for wpcsys-2.0.1.tar.gz
Algorithm Hash digest
SHA256 ecc28b48f71336a7ac7faa9f9b882c6875440782eb75b896d3eeff4512eceb9c
MD5 01a8af247a7e08a9808dffae8ca101e6
BLAKE2b-256 1a173f36dc273297a0c82164b13caca6a8ee815d35f76453d0d0a4d4785fb12e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.0.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 6.8 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.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ff713403d08e7aa3cbcaf8dfde07e8e1d289a2a589fa64f27a82e351e9562b9
MD5 51b958035a785a284e547a9ef69fc7fc
BLAKE2b-256 b3f8f0bbdae2568d51699c99d1a513dd8794dc1b41c3afe4a9906b6b3aee5e2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 6.8 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.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f909ea7f2203d619c0d6d3195509752381c546c4d67f190eae2e8ea2cc27606e
MD5 91cd2df1e444fda41e35eef6bf229fca
BLAKE2b-256 fda490c550979ef8a24af6a7f04c4d18423ec3f4919e4195dd40a15880b5eb08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpcsys-2.0.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 6.8 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.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 edbdc1ac03b12f8992ef78c2d0a8770c0f47fd48160c268359652fa529d586eb
MD5 15d040920f3f43828d4e05731786e5fb
BLAKE2b-256 e0b35c22ee79ae65309ffe8fd30c83483cfe0c83728353b16686b0bece3e4138

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