Metadata-Version: 2.4
Name: signalviewer
Version: 1.9.0
Summary: Look at recorded signals - test runs, flight logs (ArduPilot, PX4, MAVLink), CAN, simulation output - offline.
License-Expression: MIT
Project-URL: Homepage, https://github.com/DavidAlpert11/SignalViewer
Project-URL: Documentation, https://github.com/DavidAlpert11/SignalViewer/blob/main/docs/GUIDE.md
Project-URL: Changelog, https://github.com/DavidAlpert11/SignalViewer/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/DavidAlpert11/SignalViewer/issues
Project-URL: Releases, https://github.com/DavidAlpert11/SignalViewer/releases
Keywords: signals,plotting,time series,flight log,flight test,ardupilot,px4,mavlink,ulog,ros2,mcap,telemetry,csv,parquet,hdf5,matlab,offline
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Natural Language :: Hebrew
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.110
Requires-Dist: pydantic>=2.0
Requires-Dist: uvicorn>=0.27
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Requires-Dist: scipy>=1.10
Requires-Dist: pyarrow>=12.0
Requires-Dist: h5py>=3.8
Requires-Dist: python-bidi>=0.4
Requires-Dist: matplotlib>=3.7
Requires-Dist: python-docx>=1.0
Requires-Dist: pymavlink>=2.4.40
Requires-Dist: pyserial>=3.5
Requires-Dist: pyulog>=1.0
Requires-Dist: mcap>=1.1
Requires-Dist: mcap-ros2-support>=0.5
Requires-Dist: lz4>=4.0
Requires-Dist: zstandard>=0.21
Provides-Extra: desktop
Requires-Dist: pywebview>=5.0; extra == "desktop"
Provides-Extra: all
Requires-Dist: pywebview>=5.0; extra == "all"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/assets/png/icon-128.png" width="96" alt="Signal Viewer icon">
</p>

<h1 align="center">Signal Viewer</h1>

<p align="center">
  <b>A fast, offline desktop app for exploring, comparing and reporting on time-series data</b><br>
  CSV · Parquet · MATLAB .mat · ArduPilot .bin · MAVLink .tlog · PX4 .ulg · ROS 2 .mcap · HDF5 · CAN + .dbc
</p>

<p align="center">
  <img alt="Python" src="https://img.shields.io/badge/Python-3.9%2B-3776AB?logo=python&logoColor=white">
  <img alt="React" src="https://img.shields.io/badge/UI-React%20%2B%20TypeScript-61DAFB?logo=react&logoColor=black">
  <img alt="Platforms" src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey">
  <img alt="Offline" src="https://img.shields.io/badge/runs-100%25%20offline-2ea44f">
  <img alt="Languages" src="https://img.shields.io/badge/UI-English%20%7C%20%D7%A2%D7%91%D7%A8%D7%99%D7%AA-orange">
  <a href="https://davidalpert11.github.io/SignalViewer/"><img alt="Docs" src="https://img.shields.io/badge/docs-site-0A7BBB"></a>
  <a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/images/01_overview.png" alt="Signal Viewer: four linked plots, two cursors and statistics between them" width="100%">
</p>

Signal Viewer is a Python computation core (FastAPI + NumPy) with a React/TypeScript UI, in one
native desktop window. It opens multi-gigabyte recordings in seconds, keeps every sample available
at full resolution, and works with **no internet connection at all** – including the map and the
3D globe.

- **Plot anything quickly** – up to 9 linked plots per tab, Time / X-Y / FFT / Spectrogram / Map / 3D modes, two cursors with Δ and statistics, zoom history, notes.
- **Compare runs** – every shared signal ranked by similarity, automatic time alignment, a full comparison table, CSV export – over the whole runs or **the same segment of each** (the 2nd AUTO of every flight).
- **Understand flight logs** – ArduPilot, MAVLink and PX4 logs read directly: flight modes, events, parameters and an automatic **health check**; the first log you open gets a suggested view and its three worst findings.
- **Watch it live** – MAVLink from a vehicle or a simulator over UDP, TCP or a serial radio, recorded to a `.tlog` as it arrives and followed like any growing file.
- **See where it happened** – an offline map and a 3D terrain view with the vehicle model, its attitude and its track, synchronised with the timeline.
- **Do the math** – formulas such as `2*Speed - RPM/95` with autocomplete, filters, derivatives and integrals that update when the data changes; **coordinate frames** (NED / ENU / body / ECEF / LLA, suggested from the signal names); motor orders on spectra.
- **Share the result** – interactive offline HTML, PDF and Word reports – also **one per file from the command line**; sessions and reusable templates.
- **Into the test process** – `signalviewer-cli check` (limits as pass / fail, per flight mode) and `compare` (against a golden run) with exit codes and JUnit XML for CI.
- **Any recording** – CAN logs with a `.dbc`, raw binary packets described by a layout (ICD), and your own formats as a short Python reader.

---

## See it in action

### Open a file and build a view

Open a file, choose a layout, click signals into plots, then zoom and read values with two cursors.

<p align="center"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/media/01_quickstart.gif" alt="Opening a CSV, plotting four signals, zooming and placing two cursors" width="100%"></p>

### A flight on the map and in 3D

One template turns latitude / longitude / altitude / attitude signals into a map and a 3D view. Press
play and both follow the timeline; *Up to the time* draws the track as it is flown.

<p align="center"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/media/02_flight_map_3d.gif" alt="A UAV flight over the Sea of Galilee played back on the offline map and in 3D" width="100%"></p>

### Compare runs

Pick several files: every shared signal is ranked from least to most similar. Click a row to overlay
it, align the runs in time automatically, or open the table of all signals.

<p align="center"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/media/03_compare_runs.gif" alt="Comparing three runs: similarity list, overlay and comparison table" width="100%"></p>

### Flight-log health check

Open an ArduPilot `.bin` and the **Log** panel finds vibration, clipping, battery, EKF and motor
problems. Click a finding to jump to it; click an event to move the cursor there.

<p align="center"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/media/04_flight_log_health.gif" alt="ArduPilot log: vibration template, health findings, events and parameters" width="100%"></p>

### Live from the vehicle

*Live ▸ MAVLink*: connect to a vehicle, a simulator or a ground station that forwards (UDP, TCP or
a serial radio). The link is recorded to a `.tlog` that opens like any file and grows in live mode;
*Follow* keeps the last seconds in view.

<p align="center"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.9.0/docs/media/05_live_mavlink.gif" alt="Live MAVLink: attitude and altitude growing as the vehicle sends them" width="100%"></p>

> Higher-quality MP4 versions of these clips are in [`docs/media/`](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/media).

---

## Quick start

```bash
git clone https://github.com/DavidAlpert11/SignalViewer.git
cd SignalViewer
pip install -r requirements.txt
python run.py                      # opens the desktop window (or the browser)
```

The welcome screen opens each example in one click (*a drone flight · the same mission flown twice ·
three car runs to compare · an ArduPilot flight log*), or press **Ctrl+O** and open the files in
[`examples/`](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/examples):

| File | Try |
|---|---|
| `examples/run_012.csv` | click *Speed*, *RPM*, *Throttle*, *DriveMode* into a 2 × 2 layout; press **Space** and **D** for two cursors |
| `examples/run_012.csv` + `run_013.csv` + `run_014.csv` | open all three, then **Compare** in the side rail |
| `examples/uav_flight.csv` | **Templates ▾ → Position on the map & 3D**, then press **P** to play |
| `examples/uav_flight.csv` + `uav_flight_windy.csv` | the same mission flown twice, the second in a cross-wind: both tracks on the map, **Compare** shows where they differ (roll, ground speed, battery) |
| `examples/copter_flight.bin` | an ArduPilot quad-copter flight: the start card suggests *ArduPilot · Full review* and points at the vibration burst it found; the **Log** button has the events, parameters and the whole health check |
| a report per file | `python cli.py report --template "ArduPilot · Full review" --out reports/ logs/*.bin` (HTML, `--format pdf` or `docx`; `python cli.py templates` lists them) |
| pass / fail in CI | `python cli.py check examples/run_01*.csv --checks examples/checks.json --junit results.xml` - exit code 1 when a limit is broken, 2 when a file or signal is missing; `--template NAME` uses the limits saved in a template |
| against a golden run | `python cli.py compare examples/run_012.csv examples/run_014.csv --tol-abs 15` - every shared signal, the most different first; outside the tolerance = exit code 1 |
| your own format | `python cli.py readers --example` writes `~/.signalviewer/readers/example_kv_reader.py`: a function marked `@reader(extensions=[".kv"])` that returns the time and the signals; files of that type then open like the built-in ones |
| raw binary packets | `python cli.py readers --example-icd examples_run.tlm` writes a layout (`example_bench.icd.json`: sync, ids, fields with type / scale / unit / bits / names) and a recording; open the `.tlm` like any file |
| live data | ArduPilot SITL or MAVProxy on UDP 14550, then **Live ▾ → MAVLink → Connect and record** |

The demo files are synthetic and are regenerated by `python tools/make_demo_data.py` (the .bin by
`tools/make_example_bin.py`, a real DataFlash log; `tools/make_test_bin.py` makes test logs of any length).

---

## Install

- **Windows:** `SignalViewer-Setup-X.Y.Z.exe` from the [latest release](https://github.com/DavidAlpert11/SignalViewer/releases/latest) (installs for you only, no administrator rights), or the portable `.zip`. **Linux / macOS:** the `-portable.7z` for your system.
- **Python 3.9+:** `pip install signalviewer`, then `signalviewer` - everything, every reader and report. Short of disk space? `pip install signalviewer-lite` is the core (about 350 MB instead of 760) with the rest as extras (`signalviewer-lite[ros]`, `[parquet]`, `[all]`…); a file that needs one says which. Install one of the two, not both.
- **From source:** `pip install -r requirements.txt` and `python run.py`.

**Nothing needs the internet at run time** - the packages carry Python, every library, the UI, the
map and the 3D terrain. Building the installer and the portable packages yourself, and running from
source: [Install](https://davidalpert11.github.io/SignalViewer/install/).

## Command line and CI

```bash
signalviewer-cli export flight.bin --signals "ATT.Roll,ATT.Pitch" --out roll.csv
signalviewer-cli report --template "ArduPilot · Full review" --out reports/ logs/*.bin
signalviewer-cli check  runs/*.csv --checks checks.json --junit results.xml     # exit 1 on a broken limit
signalviewer-cli compare golden.csv new/*.csv --tol-pct 2                        # against a golden run
```

```python
import signalviewer as sv
t, roll = sv.load("flight.bin").signal("ATT.Roll")
sv.show(t, {"roll x2": 2 * roll})          # into the open app
```

More - the checks and tolerances files, your own readers, binary layouts, CAN: [Command line, Python and formats](https://davidalpert11.github.io/SignalViewer/command-line/).

## Where it fits

Signal Viewer is for the engineer who has **recordings to judge**: several runs of the same test, a
flight log after a flight, a simulation next to the real thing - and often a closed network. What it
brings together, in one offline window and on the command line:

- **comparing runs** first-class: every shared signal ranked by how different it is, automatic time
  alignment, the same segment of each run (the 2nd AUTO of every flight), differences per flight mode;
- **from data to a verdict**: limits and golden-run tolerances as pass / fail, a report per file -
  the same in the app and in CI;
- **many sources, one view**: CSV, MATLAB, ArduPilot / PX4 / MAVLink logs, ROS 2, HDF5, Parquet, CAN
  with a `.dbc`, your own binary packets and formats;
- **offline and local**: nothing leaves the PC, no account, no telemetry; English and Hebrew.

If you mostly stream ROS topics live, a robotics tool such as PlotJuggler or Foxglove fits that
better; if your work lives inside MATLAB, its Simulation Data Inspector is next to your models. Signal
Viewer reads what those tools record (`.mcap`, `.ulg`, `.mat`) when you need to compare and report.

## Documentation

[The documentation site](https://davidalpert11.github.io/SignalViewer/) - the [user guide](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/GUIDE.md) ([עברית](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/GUIDE.he.md)), [what works](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/features.md)
(every feature and the keyboard), [command line and formats](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/command-line.md), [install and
build](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/install.md), [offline map and 3D](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/maps-and-3d.md), [performance](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/performance.md),
[known limitations](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/limitations.md), [gallery](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/gallery.md), [development](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/development.md).
The same guide is in the app: *Help → User guide* (F1). Changes: [CHANGELOG](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/CHANGELOG.md).

## בעברית בקצרה

<div dir="rtl">

**Signal Viewer** – אפליקציה לצפייה, השוואה ודוחות על נתוני זמן: ריצות ניסוי, לוגים של טיסה, תוצאות סימולציה,
לוגים של CAN והקלטות בינאריות. עובדת כולה בלי אינטרנט, והקבצים לא יוצאים מהמחשב.

**התקנה**

- **Windows:** קובץ ההתקנה `SignalViewer-Setup-X.Y.Z.exe` מ־[השחרור האחרון](https://github.com/DavidAlpert11/SignalViewer/releases/latest) (בלי הרשאות מנהל), או ה־zip הנייד.
- **Python:** <code dir="ltr">pip install signalviewer</code> ואז <code dir="ltr">signalviewer</code>.
- **מקוד המקור:** <code dir="ltr">pip install -r requirements.txt</code> ואז <code dir="ltr">python run.py</code>.

**מה אפשר לעשות**

- לגרור קבצים לחלון: CSV, ‏MATLAB, לוגים של ArduPilot ו־PX4, ‏MAVLink, ‏ROS 2, ‏HDF5, ‏Parquet, ‏CAN עם קובץ ‎.dbc.
- לבנות תצוגה: עד 9 גרפים מקושרים בטאב, שני סמנים עם הפרש וסטטיסטיקה, FFT, ספקטרוגרם, מפה ותלת־ממד.
- להשוות ריצות: כל הסיגנלים המשותפים מדורגים לפי מידת השוני, יישור זמן אוטומטי, אותו מקטע בכל ריצה.
- לחשב: נוסחאות, מסננים, נגזרות ואינטגרלים, ופעולות Python משלכם.
- לשתף: דוחות HTML, ‏PDF ו־Word, סשנים ותבניות.
- לבדוק אוטומטית ב־CI: הפקודות <code dir="ltr">signalviewer-cli check</code> ו־<code dir="ltr">compare</code> מחזירות עבר/נכשל ו־JUnit XML.

**מדריך מלא בעברית:** [docs/GUIDE.he.md](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/GUIDE.he.md), וגם בתוך האפליקציה: עזרה ← מדריך למשתמש (F1).
מה חדש בכל גרסה: [CHANGELOG](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/CHANGELOG.md).

</div>

## License

Signal Viewer is released under the [MIT License](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/LICENSE): free to use, change and ship, also
commercially, as long as the copyright notice stays with it.

It ships with third-party parts under their own licences: uPlot (MIT,
`backend/app/report_assets/uPlot.LICENSE`), the report fonts (SIL Open Font License,
`backend/app/report_assets/fonts/OFL-LICENSE.txt`), CesiumJS (Apache-2.0), and map data from
OpenStreetMap (© OpenStreetMap contributors, ODbL), Natural Earth (public domain) and the AWS
Terrain Tiles (see [Offline map data](https://github.com/DavidAlpert11/SignalViewer/blob/v1.9.0/docs/maps-and-3d.md#offline-map-data)). Python and JavaScript libraries keep
their own licences (`requirements.txt`, `frontend/package.json`).
