Skip to main content

Build Status PyPI

anritsu_lightning

Python interface to the Anritsu Lightning 37xxxD VNA

Installation

> pip install anritsu_lightning

Usage

>>> from anritsu_lightning import CommChannel
>>> with CommChannel(address=6) as vna:
...     vna.ch3.parameter = "S21"
...     s21 = vna.read(channel=3, data_status="corrected")
>>> 

It is also possible to read the S-parameters in Touchstone SnP format.

>>> from anritsu_lightning import CommChannel
>>> with CommChannel(address=6) as vna:
...     vna.measurement_setup.start = 40e6  # Hz
...     vna.measurement_setup.stop = 20e9  # Hz
...     vna.measurement_setup.data_points = 401
...     vna.ch1.parameter = "S11"
...     vna.ch1.graph_type = "log magnitude"
...     vna.ch1.graph_scale = 20.0  # dB/div
...     vna.ch2.parameter = "S12"
...     vna.ch3.parameter = "S21"
...     vna.ch3.graph_type = "log magnitude"
...     vna.ch3.graph_scale = 2.0  # dB/div
...     vna.ch4.parameter = "S22"
...     vna.display_mode = "dual channels 1 & 3"
...     with open(<file>, "wt") as f:
...         f.write(vna.get_s2p(previous=False))
>>>

It is also possible to use the markers to find the -3 dB point of a filter. In this example, the VNA measured the -3 dB bandwidth of a Mini-Circuits VLF-1000+ low pass filter with nominal specification of 1.3 GHz. The VNA was already setup to measure S21 on channel 3 between 40 MHz and 5 GHz.

In [1]: from anritsu_lightning import CommChannel
In [2]: cc = CommChannel(address=6)
In [3]: vna = cc.get_instrument()
In [4]: vna.markers.mode = "normal"
In [5]: vna.markers.enable([1, 2])
In [6]: vna.markers.set_active(1)
In [7]: vna.markers.set_xaxis_location(1, "40 MHz")
In [8]: vna.markers.delta_reference = 1
In [9]: vna.markers.set_active(2)
In [10]: bw = vna.markers.search("-3 dB", reference="delta reference", timeout=5000)
In [11]: print(f"{bw/1e9:.2f} GHz")
1.26 GHz

Supported features:

  • Measurement setup: frequency sweep, data points, etc.
  • Channel setup: parameter (S11, S12, ...), graph type, etc.
  • Graph setup: scale, reference, offset
  • Data transfer: channel data, screen bitmap, S2P file
  • Markers

Metadata

Release files for anritsu-lightning 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anritsu-lightning 0.1.7
File Size Uploaded Provenance Actions
anritsu_lightning-0.1.7.tar.gz 12.0 kB Without provenance Details for anritsu_lightning-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anritsu-lightning 0.1.7
File Interpreter ABI Platform Actions
anritsu_lightning-0.1.7-py3-none-any.whl Python 3 none any Details for anritsu_lightning-0.1.7-py3-none-any.whl

Total release size: 23.9 kB

Release files / anritsu_lightning-0.1.7.tar.gz

Download URL anritsu_lightning-0.1.7.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b7a30489fce5619b2c649d4e75f032a094c75b662a98aba1f87dbd3df9a88a75
BLAKE2b-256 checksum
How to use checksums
e517ffef602551716b9c2247db5f8fca35b151b7a75251573397940eec51df11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / anritsu_lightning-0.1.7-py3-none-any.whl

Download URL anritsu_lightning-0.1.7-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0eaa4c3ec53d9c4c84af71a5392f001614f7e12f1b9d1a315eef93456aee18bc
BLAKE2b-256 checksum
How to use checksums
44b375945efd2408b2037d8620ab73e5f58ba4b9cd12dbefe5548217ba86e198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Security for anritsu-lightning 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page