gain-viz/README.md

58 lines
1.3 KiB
Markdown
Raw Normal View History

G
2025-09-23 15:58:04 -04:00
# gain_viz
G
2025-09-23 15:15:02 -04:00
![Python](https://img.shields.io/badge/python-3.8%2B-blue)
![Flask](https://img.shields.io/badge/flask-2.x-orange)
G
2025-09-23 15:58:04 -04:00
# gain_viz
G
2025-09-23 15:27:27 -04:00
G
2025-09-23 15:58:04 -04:00
**gain_viz** is a Python-based web application for adjusting RF gain settings and visualizing their effect in real-time. It integrates with USRP and SCM devices, providing live IQ time-series and spectrum visualization.
G
2025-09-23 15:15:02 -04:00
---
## Features
G
2025-09-23 15:27:27 -04:00
- Adjust **USRP Tx/Rx gains** and **SCM Tx/Rx gains** from a web interface.
- Live IQ **time-series plot** in milliseconds.
- Live **spectrum visualization** (waterfall / spectrogram).
- Fast refresh for near real-time feedback.
- Responsive and clean web interface built with HTML/CSS/JS.
G
2025-09-23 15:15:02 -04:00
## Installation
Make sure you have **Python 3.8+** installed.
1. Clone the repository:
```bash
G
2025-09-24 21:18:42 -04:00
git clone https://riahub.ai/gael/gain-viz.git
G
2025-09-23 15:58:43 -04:00
cd gain-viz
G
2025-09-23 15:27:27 -04:00
```
G
2025-09-23 15:15:02 -04:00
2. Build and install
G
2025-09-23 15:27:27 -04:00
G
2025-09-23 15:15:02 -04:00
```bash
G
2025-09-24 21:31:08 -04:00
pip install --upgrade build
G
2025-09-24 13:38:37 -04:00
python3 -m build
G
2025-11-11 11:52:30 -05:00
pip install dist/gain_viz-0.1.1-py3-none-any.whl
G
2025-09-25 12:58:00 -04:00
export PATH=$PATH:~/.local/bin
G
2025-09-24 21:31:08 -04:00
source ~/.bashrc
G
2025-09-23 15:15:02 -04:00
```
## Usage
Run the application
```bash
G
2025-09-23 15:58:04 -04:00
gain_viz
G
2025-09-23 15:15:02 -04:00
```
Open your browser at http://localhost:5000
- Toggle the gain switches to enable input fields.
- Enter new gain values and press Update Gains.
- Observe the effect on the time-domain IQ plot and spectrum.