Skip to main content

NanoVNA2 Python libraries and tools (unofficial)

Project description

Unofficial NanoVNA v2 USB Python library and tools

This library is work in progress

This is a small library that allows to access the NanoVNA v2 vector network analyzer using Python. It implements the VectorNetworkAnalyzer base class of pylabdevs (since this is work in progress there is currently an unfinished copy in this repository).

Tools

nanovnav2fetch

The nanovnav2fetch is a very simple command line utility that allows one to fetch the S00 and S01 parameters as well as phases from the NanoVNA v2. Note that this utility always depends on numpy and requires matplotlib to plot or show the traces.

$ nanovnav2fetch --help
usage: nanovnav2fetch [-h] [--port PORT] [--debug] [--s00] [--s01] [--phases]
                      [--show] [--plot [PLOT ...]] [--plottitle PLOTTITLE]
                      [--label00 LABEL00] [--label01 LABEL01] [--npz NPZ]
                      [--start START] [--end END] [--step STEP]

NanoVNA v2 USB fetching utility

optional arguments:
  -h, --help            show this help message and exit
  --port PORT           Port to access the NanoVNA v2 (default: /dev/ttyU0)
  --debug               Enable debug mode on the NanoVNA v2
  --s00                 Gather S00 values
  --s01                 Gather S01 values
  --phases              Gather phases for all enabled channels
  --show                Display the rendered graphics (requires matplotlib)
  --plot [PLOT ...]     Supply filename that will be used to plot graphics
                        (required matplotlib)
  --plottitle PLOTTITLE
                        Title for the plot
  --label00 LABEL00     Label for the S00 parameter
  --label01 LABEL01     Label for the S01 parameter
  --npz NPZ             Dump data into supplied NPZ file
  --start START         Start frequency in Hz (default: 50 MHz)
  --end END             End frequency in Hz (default: 4.4 GHz)
  --step STEP           Step size in Hz (default: 1 kHz)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynanovnav2-tspspi-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

pynanovnav2_tspspi-0.0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file pynanovnav2-tspspi-0.0.1.tar.gz.

File metadata

  • Download URL: pynanovnav2-tspspi-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for pynanovnav2-tspspi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1f7d03ed74d2f7404af013d6269b0ee8766d0923bb3fef22e405ae159776ebe3
MD5 ebf710ade5c723267408f9013f55265e
BLAKE2b-256 ef2307578e7cb4cd406448394cbec62f1c959eadae1646b210934d827919e36b

See more details on using hashes here.

File details

Details for the file pynanovnav2_tspspi-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pynanovnav2_tspspi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7c895bf6878858a4646adc91090f2e0728dd03ed381f511b03ec1c0bdce597e
MD5 8d516c9b44efd108c42a9e89a5e2ed60
BLAKE2b-256 6384c7b386f69b60fae4797391636ae30cbb73e4b6679a4587fa082dee3f6d29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page