A simple GUI for monitoring waveforms.
Project description
Wave Monitor
A simple GUI for monitoring waveforms. It plots waveforms with PyQtGraph in a separate process. The GUI is built with PySide6.
The WaveMonitor class is the main interface. It provides methods for adding and removing waveforms from the plot, clearing the plot, and etc.
In GUI, right click to show the menu. Keyboard shortcuts are also supported.
Installation
pip install WaveMonitor
or install from source.
pip install git+https://github.com/Qiujv/WaveMonitor.git
Usage
Avoid calling clear if you only want to update the plot. It is more efficient to update the plot with add_wfm.
from wave_monitor import WaveMonitor
import numpy as np
monitor = WaveMonitor()
monitor.autoscale()
# monitor.clear()
t = np.linspace(0, 1, 1_000_001) # 1m pts ~= 1ms for 1GSa/s.
n = 20
i_waves = [np.cos(2 * np.pi * f * t) for f in range(1, n + 1)]
q_waves = [np.sin(2 * np.pi * f * t) for f in range(1, n + 1)]
for i, (i_wave, q_wave) in enumerate(zip(i_waves, q_waves)):
monitor.add_wfm(f"wave_{i}", t, [i_wave, q_wave])
monitor.autoscale()
monitor.add_wfm("wave_1", t, [i_waves[-1], q_waves[-1]]) # Replaces previous wfm.
monitor.remove_wfm("wave_10")
Thanks
This project is derived from WaveViewer.
The icon is downloaded from https://www.freepik.com/icons/oscilloscope and made by piksart.
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 wavemonitor-0.1.1.tar.gz.
File metadata
- Download URL: wavemonitor-0.1.1.tar.gz
- Upload date:
- Size: 126.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a68f576d56e232db5acea27b8a671cb4c3552b42047d34ac81b012ef47ea663
|
|
| MD5 |
9f6217b845d2158be0de907745fc4684
|
|
| BLAKE2b-256 |
bb11cdcaf5be41fd9e37cf6177580ee4aa11af99f36fadcbc9eb8f1c7f255370
|
Provenance
The following attestation bundles were made for wavemonitor-0.1.1.tar.gz:
Publisher:
python-publish.yml on Qiujv/WaveMonitor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wavemonitor-0.1.1.tar.gz -
Subject digest:
2a68f576d56e232db5acea27b8a671cb4c3552b42047d34ac81b012ef47ea663 - Sigstore transparency entry: 498895696
- Sigstore integration time:
-
Permalink:
Qiujv/WaveMonitor@fa21d4470af657f0036a56884ca7481fd0bd40a7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Qiujv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fa21d4470af657f0036a56884ca7481fd0bd40a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wavemonitor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wavemonitor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cad234daf51855a1889221a9ed897118f27d4c023a6feb8958291003126045e
|
|
| MD5 |
d222a782293c98235ea2e499c629845d
|
|
| BLAKE2b-256 |
551c5bea66b436a232ca8bc00a08d5d33f76cadf132cd59f5109d3396885534d
|
Provenance
The following attestation bundles were made for wavemonitor-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on Qiujv/WaveMonitor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wavemonitor-0.1.1-py3-none-any.whl -
Subject digest:
7cad234daf51855a1889221a9ed897118f27d4c023a6feb8958291003126045e - Sigstore transparency entry: 498895729
- Sigstore integration time:
-
Permalink:
Qiujv/WaveMonitor@fa21d4470af657f0036a56884ca7481fd0bd40a7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Qiujv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fa21d4470af657f0036a56884ca7481fd0bd40a7 -
Trigger Event:
push
-
Statement type: