A Python package to parse oscilloscope data.
Project description
oscilloscopy
oscilloscopy is a Python package to easily parse oscilloscope data.
Installation
Use the package manager pip to install oscilloscopy.
pip install oscilloscopy
Usage
import oscilloscopy
# Returns the OscilloscopeData struct with all the data
data = oscilloscopy.from_csv("F0001CH1.CSV")
# Or
# The folder probably contains a bitmap, a set, and one or two channel data csvs.
data = oscilloscopy.from_folder("./OSCILLOSCOPE_FOLDER/")
# Get timestamp data
time = data.channel_1.time
# Get data points
values = data.channel_1.data
# Access the parameters
unit = data.channel_1.parameters.vertical_units
# Returns `None` or channel_2 data
data.channel_2
# Plot the data
plt.plot(time, values)
Currently supported oscilloscopes
It can currently parse the data from the following oscilloscopes:
- (semi-untested) TDS2000C Digital Storage Oscilloscope
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Roadmap
- Verify working of library
- Math Functionality?
- Plotting Functionality?
- Live connection with the USB?
- Add more oscilloscopes
Authors
Created for use in the labs for the Electrical Engineering Bachelor of TU Delft
- Erik van Weelderen, December 2024
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 Distribution
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 oscilloscopy-0.1.0.tar.gz.
File metadata
- Download URL: oscilloscopy-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
589266c344c88ff6b754264d6609074984e6d563574b98ad17ac163d89aa43f5
|
|
| MD5 |
ec978b900db37bdf552df467827ab7cc
|
|
| BLAKE2b-256 |
6c12b7fd8f576ac58e80274a22ebbc5e8c13d298169fa095271f3cec5729dbe1
|
File details
Details for the file oscilloscopy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oscilloscopy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d980c9d18df68ab285f94f74819c3a7df430991dc3b3c5f23485e88895c4374c
|
|
| MD5 |
1171416df9d70151af85cc321f11b554
|
|
| BLAKE2b-256 |
9d13d94356ff1d5fe5adaf7a0654115ae2c12a7f946a2d7e4e2e3eb8da942573
|