Skip to main content

Collection of I/O interfaces to communicate with microcontroller boards and laboratory devices, with optional PyQt5 multithread support and graphical user-interfaces.

Project description

https://img.shields.io/pypi/v/dvg-devices https://img.shields.io/pypi/pyversions/dvg-devices Requirements Status https://readthedocs.org/projects/python-dvg-devices/badge/?version=latest https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/badge/License-MIT-purple.svg

DvG_Devices

Collection of I/O interfaces to communicate with microcontroller boards and laboratory devices, with optional PyQt5 multithread support and graphical user-interfaces.

Installation:

pip install dvg-devices

Supported devices

Arduino, or similar

microcontroller board

Aim TTi QL series II

power supply

Bronkhorst EL-FLOW

mass flow controller

Parker Compax3

servo controller

Keysight 3497xA

digital multimeter

Keysight N8700

power supply

Picotech PT104

temperature logger

PolyScience PD

recirculating bath

ThermoFisher ThermoFlex

chiller

Highlights

  • Class SerialDevice() offering higher-level general I/O methods for a serial device, such as auto_connect(), write() and query().

  • Class Arduino() which wraps around SerialDevice(). In combination with DvG_SerialCommand it allows for automatically connecting to your Arduino(-like) device and for easy serial I/O communication.

  • Separate PyQt5 interfaces are provided for each of these devices, offering out-of-the-box multithreaded data acquisition and communication. It relies on DvG_QDeviceIO.

  • Ready-to-run PyQt5 demos to directly control many of the supported devices with a graphical user-interface.

Changelog

0.2.3 (2020-08-27)

  • Workaround for bug with unknown cause in Aim_TTi_PSU_protocol_RS232 where the power supply occasionally will skew the serial input and output stream, such that the reply matches the second-previous query statement. Fixed by forcefully flushing the serial input and output buffers whenever a wrong reply is received. Hopefully, this will fix the skew when the next query() operation gets executed.

0.2.2 (2020-08-27)

  • Fixed bug in BaseDevice.query_ascii(). The use of ast.literal_eval got removed because it chokes on nan. Everything is now interpreted as a float instead.

0.2.1 (2020-08-12)

  • Fix wrong import statement dvg-pyqt-controls

  • Fix wrong import statement dvg-pyqt-filelogger

0.2.0 (2020-08-11)

  • Added dependence dvg-pyqt-controls~=1.0

  • Added dependence dvg-pyqt-filelogger~=1.0

  • Added dependence dvg-pyqtgraph-threadsafe~=3.0

0.1.0 (2020-07-23)

  • Fixed bug in BaseDevice.py where inspect.getouterframes() would momentarily suspend the thread. Solved by ditching inspect. The new ID_validation_query mechanism now relies on a simple boolean flag that gets set to force query() to raise on timeout.

  • Update dependence dvg-qdeviceio==0.3.0

0.0.7 (2020-07-17)

  • Update dependence dvg-qdeviceio==0.2.2

0.0.6 (2020-07-16)

  • Finished implementing BaseDevice.SerialDevice()

  • Update dependence dvg-qdeviceio==0.2.1

0.0.5 (2020-07-07)

  • Update dependence dvg-qdeviceio==0.2.0 Enum DAQ_trigger is now called DAQ_TRIGGER

  • Code style: Black

0.0.4 (2020-07-04)

  • Update dependence dvg-qdeviceio==0.1.2

0.0.3 (2020-07-02)

  • Fixed broken packaging

0.0.2 (2020-07-02)

  • Major restructuring PyPI package

  • Implemented DvG_QDeviceIO

0.0.1 (2020-07-01)

  • First release on PyPI

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

dvg-devices-0.2.3.tar.gz (93.7 kB view details)

Uploaded Source

Built Distribution

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

dvg_devices-0.2.3-py3-none-any.whl (104.9 kB view details)

Uploaded Python 3

File details

Details for the file dvg-devices-0.2.3.tar.gz.

File metadata

  • Download URL: dvg-devices-0.2.3.tar.gz
  • Upload date:
  • Size: 93.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for dvg-devices-0.2.3.tar.gz
Algorithm Hash digest
SHA256 52cc2d5213b2cdb78a2ea863ac69d9eebdbbd1f83d416f01de78575fe648685a
MD5 a3a23ac579f933ed30c6844e7deaacae
BLAKE2b-256 8ce113f70de7e79c93e02649151fb09dafd2e1a0d9209c89811fe642847eb42c

See more details on using hashes here.

File details

Details for the file dvg_devices-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: dvg_devices-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 104.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for dvg_devices-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37db6ac143423dce95e524b2da2dcb5e8aa1a4694160c330e96f78b38fbc3629
MD5 25a9f517093fd5888346ba8d8b782f2b
BLAKE2b-256 d832643e953e5700570c834dba259407939792bfdd1555bb6d62dd65aa2a9a4f

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