Skip to main content

Serial device controller for data acquisition. Currently supports Omega DPG-4000 pressure sensor and GwInstek LCR-821 meter.

Project description

serialdaq

This module defines classes for controlling Omega DPG-4000 pressure sensors and the GwInstek LCR-821 meters. This implementation features auto-connect to the device (by scanning available serial ports) and provides methods for finite- or indefinite-time data acquisition (and saving to file).

The classes for each device are subclasses of a SerialDevice class to allow expansion for use with other serial devices (simply inherit SerialDevice and define the get_reading() method, and the baud and data_columns properties).

Installation

To install serialdaq, use pip (or similar):

pip install serialdaq

Documentation

This package detects the device automatically if only one is connected; if not, specify port. Collects every 10s forever unless count is given. Data is saved to specified file (filename required).

LCR meter example

lcr = serialdaq.LCRMeter()
lcr.start_collection('output_filename.csv')

Omega pressure sensor example

omega = serialdaq.PressureSensor()
omega.start_collection('output_filename.csv')

Other ways of using this module

serialdaq.serial_ports()                 # list all available serial ports
serialdaq.list_devices()                 # list all devices

omega = serialdaq.PressureSensor('COM5') # connect to a specific port
omega.get_reading()                      # get a single reading

omega.start_collection('output_filename.csv',    # output filename (required)
						 dt=5,                   # sample interval (seconds)
						 count=20,               # number of readings to get
						 label='50um')           # single label for data

omega.start_collection('output_filename.csv',     # output filename (required)
						dt=10,                    # sample interval (seconds)
						count=10,                 # number of readings to get
						label=['50um', 'trial1']) # multiple labels for data

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

serialdaq-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

serialdaq-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file serialdaq-0.1.0.tar.gz.

File metadata

  • Download URL: serialdaq-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.6.0 Windows/10

File hashes

Hashes for serialdaq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 964a39d3172f13b82ffe9b0f950e2334bcc86a02a299f4bd23d501c91b6b1be6
MD5 5cdf206f1cafb6fd6255ff0a8ba71c39
BLAKE2b-256 be1b527717c696ac426414c31069ade378dec7f931189cec64ca1087ddac0f62

See more details on using hashes here.

File details

Details for the file serialdaq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: serialdaq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.6.0 Windows/10

File hashes

Hashes for serialdaq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7409adf7157624484b695c241a2fcd1babcb30f8b5d98fc20e76f0cfe579783
MD5 55ac381722b61c53b66445ba592bb888
BLAKE2b-256 47b99c97162b88ff773880b860c796d5f246500e312d0093bb3d4f823dfee960

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page