Skip to main content

Python library for picoDAQ data acquisition

Project description

picodaq — Python library for picoDAQ data acquisition

Introduction

Data acquisition is a central aspect of many types of scientific experiments. Commonly, some measurement device outputs a time-varying voltage which you would like to capture on a computer. With picodaq, this can be as easy as

with AnalogIn(channel=0, rate=50*kHz) as ai:
    data = ai.read(10*s)

At present, the picodaq library supports our soon-to-be-released picoDAQ hardware. Support for other popular hardware may be added in the future.

Features

  • Multi-channel data acquisition
  • Multi-channel analog output
  • Multi-channel signal generator
  • Continuous or episodic recording
  • Optional digital triggering
  • Synchronized digital input and output
  • All with a refreshingly simple API

Installation

As easy as

pip install picodaq

Examples of use

Single-channel data acquisition

After

from picodaq import *
import matplotlib.pyplot as plt

you really can acquire 10 seconds of data, sampled at 50 kHz from channel “ai 0” of your data acquisition board simply by

with AnalogIn(channel=0, rate=50*kHz) as ai:
    data = ai.read(10*s)

and plot the results with

plt.plot(data)

Multi-channel data acquisition

Of course, you can also capture several channels at once, and the “read” method can be made to return time stamps so you can have time in seconds rather than sample numbers on your x-axis:

with AnalogIn(channels=[0,2], rate=50*kHz) as ai:
    data, time_s = ai.read(10*s, times=True)
plt.plot(time_s, data)

Documentation

Full documentation for the picodaq library is at picodaq.github.io.

Development

Development of the picodaq library is on github.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

picodaq-0.1.7-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

Details for the file picodaq-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: picodaq-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 55.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for picodaq-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1f3cb50eddb1e401ac2bcb8732123da778e1d5e422a89dd51c69816b0c49fbb2
MD5 c53ba19e028ba802b402f438e6761954
BLAKE2b-256 cff87fc8f01f14263629e26d093c212a498f603dd035e6959a047f1a379254c6

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