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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picodaq-0.1.4-py3-none-any.whl.
File metadata
- Download URL: picodaq-0.1.4-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2a4f225c7ce57613c2211579b89c801bf0f1dd3b814ff0811f9a7b977521b4c
|
|
| MD5 |
005e251760226cf45d782e7dc7ee481e
|
|
| BLAKE2b-256 |
ab31c37c0112e79fe1c4e0bc1b2122bb2fcd736a6827008bc837835ed3bfdef9
|