Skip to main content

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.

Metadata

Release files for picodaq 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for picodaq 0.1.8
File Interpreter ABI Platform Actions
picodaq-0.1.8-py3-none-any.whl Python 3 none any Details for picodaq-0.1.8-py3-none-any.whl

Release files / picodaq-0.1.8-py3-none-any.whl

Download URL picodaq-0.1.8-py3-none-any.whl
Size 56.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
851e16089f3470341248e8f293a93bc92605892eb89f15c53cbc8d1d3de96a62
BLAKE2b-256 checksum
How to use checksums
a3d0711b2a45237a041251d16896c2d1315dd2c9e228f3062b70c97bd5333e42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for picodaq 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page