Skip to main content

WPC Device Driver Python API

Project description

About

WPC Python driver contains APIs for interacting with the WPC USB-DAQ, Ethernet and Wifi-DAQ series products.

In order to optimize driver API performance, we adopt async/await structure for the driver implementation as known as non-blocking mode.

Quick Start

In the bellowing example, we use pywpc to find all available WPC devices.

pywpc.pyd is a Python based dll file which support on win10 x64.

>>> from wpcsys import pywpc

>>> dev = pywpc.Broadcaster()
...
Opened handle (Device finder)
 
>>> pywpc.PKG_FULL_NAME
...
WPC Python driver

>>> pywpc.__version__
...
0.2.4

>>> dev.connect()
...
Binded Device finder

>>> await dev.Bcst_getDeviceInfo()
...
[['192.168.5.79', '255.255.255.0', '34:86:5d:19:06:6c', 'Wifi-DAQ-E3-A_R0.3.4']]

>>> dev.disconnect()
...
Disconnected Device finder

>>> dev.close()
...
Closed handle (Device finder)

Installation

Install wpcsys using pip:

$ pip install wpcsys

Upgrade

Upgrade wpcsys using pip:

$ pip install --upgrade wpcsys

Requirements

Products

WiFi based DAQ card

  • Wifi-DAQ-E3-A

Ethernet based remote controller

  • STEM (unsupported)
  • STEM-Lite (unsupported)

Ethernet based motion card

  • EMotion (unsupported)

Ethernet based DAQ card

  • EPC (unsupported)
  • Ethan-D
  • Ethan-A

USB interface DAQ card

  • USB-DAQ-F1-D
  • USB-DAQ-F1-AD
  • USB-DAQ-F1-TD
  • USB-DAQ-F1-RD
  • USB-DAQ-F1-CD
  • USB-DAQ-F1-AOD
  • USB-DAQ-F1-DSNK

Port funtion table

Model AI AO DI DO CAN UART SPI I2C RTD Thermocouple
Wifi-DAQ-E3-A 1 - - - - - - - - -
Ethan-D - - 1 0 - - - - - -
Ethan-A 0 - - - - - - - - -
USB-DAQ-F1-DSNK - - 0, 1 2, 3 - - - - - -
USB-DAQ-F1-AOD 0 0 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 - 1, 2 - -
USB-DAQ-F1-AD 0 - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 2 1, 2 - -
USB-DAQ-F1-D - - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 1, 2 1, 2 - -
USB-DAQ-F1-TD - - 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-RD - - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 2 1, 2 1 -

Take USB-DAQ-F1-AOD for example

  • port0 is available for AI
  • port2 is available for DI
  • port0 and port1 are available for DO
  • port2 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-0.2.5.tar.gz (513.6 kB view details)

Uploaded Source

Built Distribution

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

wpcsys-0.2.5-py2.py3-none-any.whl (515.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: wpcsys-0.2.5.tar.gz
  • Upload date:
  • Size: 513.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for wpcsys-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e360cd983537265211999c5bb7b6f88fb550120288b41436df4abb0e807dad74
MD5 eefe48626911f27e92644dbc28a362f9
BLAKE2b-256 a0d615af2ac0105c224217a5c9d8293197fc9ab445402cd489162c1135cf406c

See more details on using hashes here.

File details

Details for the file wpcsys-0.2.5-py2.py3-none-any.whl.

File metadata

  • Download URL: wpcsys-0.2.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 515.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for wpcsys-0.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8cd1ec19517025f29779527f9c2409c9a50301eb2cf623a745c0e1d415213422
MD5 6ab4c008c1b5abc7968d7b21f77b4e60
BLAKE2b-256 a14ad491bc3b5e358cee548945a3644a92fb0ac95855c5d2d7a0c5f10c78c26f

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