TAPR VNA Software

Instruction Manual



preliminary for nanoVNA release 0.2.3 and VNAR4.4
October 17, 2019

 

 

 

 

 

 

 

 

 

 

 

Previous versions for Ten-Tec VNA

Table of Contents

  1. Overview
    1. Hardware Version Differences
    2. Instrument Caution
    3. Temperature Limitation
    4. Basic Performance
    5. Relative Measurements
    6. Instrument Limitations
    7. Calibration Standards
    8. Calibration Modes are Single-threaded
  2. Software Installation
    1. Initial Software installation
    2. PC Hibernation / Suspension
    3. Supported Windows Versions
    4. Software Distribution
    5. Installed TAPR Files
    6. Installation Pre-Requisites
    7. Connecting nanoVNA to your Computer
    8. Uninstall
  3. Fixture Calibration
    1. Fixture Calibration Data
    2. Partial Changes to Fixture Calibration Data
    3. Fixture Setup Diagrams
    4. Actual measurement
    5. Fixture Calibration Setups
    6. Short Fixture Calibration
    7. Open Fixture Calibration
    8. 50-ohm Terminated Fixture Calibration
    9. Through Fixture Calibration
  4. TAPR Software Menu
    1. File Menu
      a. Exporting S-Parameters
    2. View Menu
    3. Calibration Menu
    4. Trace Menu
    5. Device Under Test
    6. Vertical Scale Menu
    7. Marker Menu
    8. Frequency Grid Menu
    9. Storage Menu
    10. Integration Menu
    11. Help & Software Updates
  5. Controls
    1. Frequency Controls
    2. Apply Calibration
    3. Level Controls
    4. Sweep Controls
    5. Mouse Actions
  6. Example Measurement
    1. Some Cautions
    2. Common Display Results
  7. Appendix 1: S Parameter Basics
    1. Polar Display
    2. Rectangular Display
    3. Group Delay
    4. SWR
  8. Appendix 2: Calibration Details
    1. Detector Calibration
    2. S21 Compensation
    3. S11 Compensation
    4. Fixture Calibration Data Set
  9. Appendix 3: Software Installation, Registry

  10. Appendix 4: Group Delay and Aperture
    1. Aperture Shortening

Overview

This manual provides instructions for using TAPR Network Analyzer (VNA) software with nanoVNA. Due care is required in test setup, calibration, and operational methods to fully realize nanoVNA accuracy. This manual applies to nanoVNA firmware release 0.2.3.

If you are not already familiar with ... consider reading Appendix 1 Overview of S Parameters before continuing here.

A VNA performs measurements on one-port or two-port networks.
A two-port network has input and output (plus ground(s)).
A one-port network has only an input (and ground). Network input is connected to nanoVNA CH0 (TX) connector, and network output is connected to nanoVNA CH1 (RX) connector.

This VNA is capable of four measurements:

Other measurements are derived from these four.

Hardware Version Differences

See nanoVNA hardware

Instrument Caution

The nanoVNA places about a -10 dBm level signal (~0.1 milliwatts) onto the CH0 connector during measurements.

Temperature Limitation

Overclocked nanoVNA Si5351 is somewhat temperature sensitive. For best performance, allow nanoVNA to warm for 10 minutes before calibrating or measuring, but also avoid overheating. Key nanoVNA temperature dependence is stimulus performance approaching 300/900 MHz.

To begin, connect nanoVNA to host by USB cable, turn it on, then launch the TAPR program.

Basic Performance

Relative Measurements

nanoVNA measures neither signal magnitudes nor phase delays absolutely. All measurements are calculated relative to other measurements. In most cases, this other measurement will be an instrument or fixture calibration. Measurement accuracies thus directly depend on reference calibrations.

Return measurements are extremely sensitive to fixture configurations. Great care must be used making S11 measurements to obtain reasonably accurate data. For example, a single 50-ohm connector adaptor less than 1 inch long introduces measurable phase delay in return signals. Properly set up, nanoVNA can resolve connector adaptor lengths. Practically, calibrations should include connector adaptors as used in actual measurements.

Instrument Limitations

Calibration Standards

Some high quality commercial attenuators are not exactly 50.0 ohms in impedance. A resistance error of 0.5 ohms in the "50 ohm terminated" calibration step is enough to degrade return loss dynamic range. Similarly, quality of SHORTs and OPENs used in fixture calibration can degrade calibrations. This is one reason nanoVNA uses SMA rather than BNC connectors for CH1 and CH0 ports -- these connectors cause less discontinuity than other types.

Proper calibration needs:

Details:

Calibration Modes are Single-threaded

This TAPR software is multi-threaded, meaning that other Windows programs can run while this software acquires data in the background. However both fixture and instrument calibration are single-threaded code. This means that these two calibrations routines will stall if another Windows program has the focus, and will continue when the TAPR application regains focus. The progressbar may take awhile to update after the TAPR program regains focus.

Software Installation

Initial Software installation

Install TAPR software GitHub. TAPR requires Microsoft Windows© dotNET 1.1 run-time, but other applications and Microsoft service packs may have it already installed it.

Hibernation or Suspension of Host Computer

If the host computer (typically a laptop) hibernates or suspends, exit TAPR, then restart.

Supported Windows Versions

While VNAR4.3 software may run on Windows operating systems as shown, nanoVNA support is expected for no older than Windows 7:

WindowsSupportNotes
Windows 98 -- GoldMaybeSupports only USB 1.0, not 1.1
Windows 98 SE
(Second Edition)
YesTested
Windows MEProbablyNot tested
Windows NTProbablyNot tested
Windows 2000YesTested
Windows XPYesTested
Windows 7nanoVNATested?
Windows 8.1nanoVNATested
Windows 10nanoVNATested

Software Distribution

The current software distribution consists of:

FilenameFunction
VNAR4.4.zipInstaller ZIP file

Installed TAPR Files

VNAR4.4.zip includes only VNAR4.4.exe; file locations can change...

File nameWhere foundFunction
VNAR4.4.exeInside VNAR4.4.zipHost program
Help.chmGitHub
Should be in folder with VNAR4.4.exe
Compiled help file

Installation Pre-Requisites

VNAR4 software expects a reasonably current Windows .NET 1.1 framework run time package (version 1.0 is not sufficient).
A virtual COM port driver is required for nanoVNA; see Appendix 3 for details.

Connecting nanoVNA to your Computer

After verifying TAPR program launch, quit it.
Connect nanoVNA to your computer using a USB cable and power on. This may provoke Windows "New Hardware Detected Wizard".r The wizard finds nanoVNA device and attempts to associate a device driver. When prompted, let the wizard search to find the driver (since it may have been installed for STM DFU utility).

After Windows has installed a driver and with nanoVNA connected and powered on, relaunch VNAR4.
If launched before nanoVNA connection, VNAR4 may not detect it.

Select 'SerialPort' under 'Settings" and confirm that 'Hardware:' is set to 'NanoVNA'.

Once connected to VNAR4, nanoVNA display no longer updates for stimulus or RF connection changes.
Display changes will reflect data scanned prior to VNAR4 control.

Uninstall

To uninstall this TAPR VNA application, simply delete VNAR4 .exe and .zip files. See Appendix 3 for details.

Fixture Calibration

Test fixtures (test setups) consist of connectors, cables, adaptors and other things that affect S21 and S11 measurements. Test fixtures have different physical properties. For example, each interconnecting test cable length affects the phase of all measurements (due to propagation time delays specific to each cable). Therefore, each test setup requires unique calibration data to compensate for test setup and errors internal to nanoVNA. TAPR software supports "fixture calibrations",
and you make one unique for each measurement set up, saved with descriptive file names, to later identify each fixture exactly!

Before starting Fixture calibration, have available
'SHORT', 'OPEN', '50-ohm TERMINATION', and a connector bullet (or barrel). 'OPEN' is just the open end of an SMA cable with nothing connected.

Calibration window

Fixture Calibration Data

Fixture calibration data sets are built from four raw data measurements - 'Open', 'Short', 'Terminated', and 'Through'.

The following procedure makes a typical calibration data set:

  1. The cable from nanoVNA CH0 connector to the device under test (DUT) is disconnected at the DUT, then terminated by a sequence of precision loads:
    1. 'Short' calibration with a zero-ohm load terminating the CH0 cable
    2. 'Open' calibration with unterminated CH0 cable
    3. 'Terminated' calibration with CH0 cable terminated by 50-ohm load
    4. "Through" calibration is performed with connector barrel or bullet (usually a double-female connector adaptor) connecting CH0 and CH1 cables
  2. Error compensation parameters are computed, and the data set is saved with a descriptive filename using the extension .cal.

    The Fixture Calibration dialog box lists the 4 individual steps needed to perform calibration. A green check mark appears next to each completed step. Follow steps in order, connecting SHORT, (OPEN,) TERMINATION, and THROUGH as described for each step before clicking that step. After completing all steps, with all check marks present, click the 'SAVE' button.

    Interconnecting cables and connectors are left in place because all contribute measurement error; calibration removes both any time delay and amplitude changes they cause.

    The calibration routine makes 1024 measurements evenly spaced from 200 KHz to 120 MHz, spaced about 117 KHz apart. The test fixture itself (without the DUT) is assumed to not have any high-Q resonances, which would introduc large uncertainties into measurements (whether or not calibrated). The DUT may of course have high-Q resonances, but NOT fixturing or interconnecting cables. When applying calibration, software linearly interpolates between corrections for those two calibration frequencies nearest actual measurement frequencies, to compensate measurements.

    "Open," "Short," or "50-ohm" inaccuracies confound measurement compensation. At 100 MHz, nanoVNA is fairly sensitive to load inaccuracies.

    Normally, many different calibration data sets are eventually taken and stored, one for each test setup. These can have any valid windows filename, and descriptive filename are helpful, but the extension is always .cal. The "Apply Fixture Calibration" checkbox is grayed-out until a valid Fixture Calibration Data set is loaded.

    Partial Changes to Fixture Calibration Data

    It's possible to partially update the Fixture calibration data. For example, changing the cable from a DUT to nanoVNA CH1 connector may not appreciably affect S11 measurement, but generally changes S21 measurement. In this case, load a previously saved calibration dataset and run just the one measurement ('Through') , then save the dataset with new or existing name as appropriate. The newly saved data set inherits S11 raw and derived errors from the loaded dataset, but uses the new 'through' measurements. In fact, this can be done for any or all four measurements.

    Fixture Setup Diagrams

    The following three diagrams show fixture setup during fixture calibration process and during actual measurements using it. The following dialog box shows four steps needed for fixture calibration. Diagrams in this section show connections required to perform individual calibration steps.

    Actual measurement

    The cables, connectors, and adaptors connecting both CH0 and CH1 connectors to the DUT are part of the test fixture. These same cables connectors and adaptors must be left in place during Fixture calibration steps, while the DUT itself is removed and replaced with various loads and connector barrels during Fixture Calibration steps.

    Fixture Calibration Setups

    Only the cables, connectors, and adaptors connecting CH0 to the calibration loads are part of the text fixture during the first three fixture calibration steps. The fourth step also uses the cables, connectors, and adaptors in the CH1 connection as well in order to complete the fixture calibration. Typically all cables, connectors, and adaptors are left in place, and only the DUT is removed during Fixture Calibration steps.

    Once all four steps are completed, click the "Save Cal Results..." button to choose a file name and location. Use descriptive filenames, as many different fixture calibration files are likely.

    Filenames can be long and may contain embedded spaces. The software automatically appends .cal to names. Filenames are not limited to 8.3 format, which is insufficiently descriptive.

    Short Fixture Calibration

    Open Fixture Calibration

    50-ohm Terminated Fixture Calibration

    Through Fixture Calibration

    Cables, connectors, and adaptors connecting both CH0 and CH1 connectors to the DUT are part of the test fixture. Additionally, the bullet connector is part of the calibration test fixture even though not present in actual measurements. This represents a source of uncompensated error. Thus that connector bullet must be short, low loss and impedance-matched to cables in order to minimize errors.

    TAPR Software Menu

    The following menu items available in the TAPR program are explained in the following sections.

    File
    Print
    Print Setup
    Print Preview
    Set Plot title
    Store Forward Parameters
    Store Reverse Parameters
    Export S-parameters
    Save Configuration ...
    Load Configuration ...
    Exit
    View
    Rectangular
    Polar
    Time Domain Reflection
    Calibration
    Fixture Calibration
    Load Fixture Calibration File...
    Trace
    S11 Magnitude (rectangular) S11 Phase (rectangular) S21 Magnitude (rectangular) S21 Phase (rectangular)
    S21 Group Delay (rectangular)
    S11 Magnitude as SWR (rectangular)
    Raw Calibration Data S21 - Through (rectangular) Et - Tracking Error (Polar)
    Es - Source Mismatch Error (Polar) Ed - Directivity Error (Polar)
    Raw Calibration Data S11 - Short (polar) Raw Calibration Data S11 - Open (polar)
    Raw Calibration Data S11 - Terminated (polar)
    VertScale
    10 dB / div 5 dB / div 2 dB / div 1 dB / div
    SWR Scale
    SWR 1.0 to 11.0
    SWR 1.0 to 6.0
    SWR 1.0 to 3.0
    SWR 1.0 to 2.0
    Group Delay Time Scale
    1 milliseconds / div
    100 microsec / div
    10 microsecs / div 1 microsec / div 100 nanosec / div 10 nanosecs / div 1 nanosec / division
    100 picosec / div
    Group Delay Aperture
    Group Delay Aperture = 1
    Group Delay Aperture = 4
    Group Delay Aperture = 16
    Group Delay Aperture = 64
    Right Scale display
    Phase
    SWR
    Delay
    Ohms
    Polar Zoom
    Zoom = 1.0
    Zoom = 1.5
    Zoom = 2.0
    Zoom = 2.5
    TDR Setup (menu)
    Marker
    Change Marker Points (menu)
    Clear All Markers
    Marker Numbers
    Enable
    Disable
    Marker Parameters
    Enable
    Disable
    FreqGrid
    100 points
    201 points
    401 points
    1020 points
    Storage
    Store
    Recall
    Display Measured
    Display Storage
    Display Measured - Storage
    Help
    Display Help F1
    About
    OK
    Launch Browser (to check for Software Updates)

    File Menu

    print measurements in graphical format and store S-parameters in text files.
    Print - selected view (rectangular or polar)
    Print Preview - preview printed page format
    Print Setup - select printer and set parameters
    Title... - set / clear text appearing beneath plots
    Store Forward Parameters - store measured reflection and transmission data as S11 and S21 to temporary storage
    Store Reverse Parameters - store measured reflection and transmission data as S22 and S12 to temporary storage
    Export S-Parameters - exports stored data in text format
    Save Configuration - Saves to file complete instrument settings and display trace state (except stored S-parameters).
      The filename can be selected and should be very descriptive.
    Load Configuration - Load a previously saved configuration file to restore instrument state from a previous measurement setup.
    Exit - immediately terminate the TAPR application (and save the current instrument configuration to: last.cfg.

    Exporting S-Parameters

    The VNA is a reflection-transmission test set. It measures the forward direction half of an S-parameter data set (S11 and S21). Physically reverse DUTs in the test setup to measure their reverse direction parameters (S12 and S22).

    To measure and export a complete 4 parameter set:

    • set the frequency sweep (start and stop frequencies) and apply calibration as desired.
    • Make a measurement sweep in the forward direction
    • Store Forward Parameters.
    • Next, physically reverse the DUT (exchange input and output).
    • Make a measurement sweep in the reverse direction without changing the frequency sweep or calibration-applied boxes.
    • Store Reverse Parameters
    • After storing these two datasets, S-Parameters can be exported to a text file in either the Rectangular or Polar format.

    Forward and reverse storage arrays are both locked once stored, preventing accidental over-write. The menu items appear with a checkmark when locked. The only way to unlock them is to Export the file. Both forward and reverse arrays must be filled before the Export function can work.

    View Menu

    select the display format:
    Rectangular
    can display S11 magnitude and phase, and S21 magnitude, phase, and group delay.
    It can also show S21 ('Through') calibration parameters. Magnitude is plotted as dB vs. frequency, phase is plotted as degrees vs. frequency, and group delay is plotted as time vs. frequency.
    S-parameters Real and Imaginary components are normalized to 50 ohms.
    Display units (dB/div, and seconds/div) can be selected in the VertScale menu.
    Polar
    can display S11 (reflection measurement) and calibration data associated with reflections measurements.
    Magnitude in dB and Phase in degrees of S-parameters normalized to 50 ohms.
    Polar display does not show S21 measurements.
    Time Domain Reflection
    (TDR) mode performs a reflection measurement then converts from a frequency measurement into the real part of the time domain response. It displays reflection response versus time. It is useful for testing cables for faults. TDR markers calculate distance from the reference plane to the point indicated by the marker. TDR resolution is 4.1 nanoseconds, limiting cable fault resolution to about 1.3 feet (or about 0.4 meters). TDR mode ignores Start and Stop frequencies; it needs to setup a custom grid.

    Calibration Menu

    Fixture Calibration
    generate, load, and save a fixture calibration data set
      A separate fixture calibration set is needed for each different test fixture.
    Load Fixture Calibration File...
    select a previously saved data set by name.
    Appendix 2: Calibration Details has more information.
    Detector calibration procedure
    Fixture calibration procedure

    Trace Menu

    Use the Trace menu to select how measurements are displayed.

    Rectangular Display Mode

    S21 displays only on Rectangular display.
    S11 displays on both Rectangular and Polar displays.
    Traces supported by Rectangular display are:

    S11 MagnitudeDevice Under Test (DUT) input return loss magnitude, in dB
    S11 PhaseDUT input return loss phase angle, in degrees, from +180 to -180
    S21 MagnitudeDUT forward transfer gain (or loss) magnitude, in dB
    S21 PhaseDUT forward transfer phase, in degrees
    S21 Group DelayDUT forward transfer gain (or loss) derived group delay
    S11 Magnitude as SWR
    S11 as R OhmsS11 real value converted to Ohms
    S11 as jX OhmsS11 quadrature value converted to Ohms
    Raw Calibration Data - S21thru Raw data taken from the through VNA connection CH0 to CH1
    (through cables actually connecting to the DUT)

    Polar Display Mode

    S11 (as a polar complex number) can be displayed in Polar format, along with raw calibration data (from a calibration file that is loaded) as well as error parameters derived from calibration data.
    Error compensation and raw data are only for informational purposes and normally not displayed.

    S21 cannot be displayed in polar format.

    Fixture calibration data that can be formatted as Polar traces are here

    Time Domain Reflection Mode

    The TDR mode displays the real part of the Inverse Fast Fourier Transform of a reflection measurement. Because the TDR mode requires a specific custom frequency grid, it ignores the Start and Stop settings. When switching to the TDR mode, a new Frequency Grid is created. Thus, a new sweep is required. Click the sweep button. A TDR interpretation of existing S11 sweep data is not meaningful and should be ignored, instead re-acquire the reflection measurement after you have selected the TDR mode. The 'Apply Calibration' checkbox sets the reference plane for the TDR analysis. When the 'Apply Calibration' box is checked, distances specified on the TDR display are with respect to the reference plane (the end of the cable calibrated with the Short, Open, and Termination loads).

    The display Start time, display Stop time, and estimated velocity factor of a cable under test are specified in the TDR Setup dialog, reached from the Vertical Display menu. Additionally, distances from the Reference Plane to the Marker point can be displayed in METERS or FEET.

    TDR mode resolution is limited by a VNA's maximum stimulus frequency. It is possible to infer between TDR points by visually interpolating. For example, if two consecutive TDR points have the same large time reflection, the actual time position will lie in between those two consecutive times.

    Device Under Test

    The reflection and forward measurements are made with respect to the Device Under Test (DUT).
    The reference plane location is established when the fixture calibration is run and loaded.

    Vertical Scale Menu

    Use Vertical Scale to independently select vertical scale units per division for magnitude (in dB / division), maximum SWR display (minimum is always 1.0), group delay (seconds per division), and aperture size of the group delay computation.

    Magnitude Display resolutions selections are:
    10 dB / div 5 dB / div 2 dB / div 1 dB / div 0.5 dB / div

    SWR Scale selections are:
    SWR 1.0 to 11.0
    SWR 1.0 to 6.0
    SWR 1.0 to 3.0
    SWR 1.0 to 2.0

    Impedance Scale selections are:
    1k Ohms / div
    100 Ohms / div
    10 Ohms / div

    Right Scale Display selections are:
    Phase / SWR / Delay / Ohms
    [rectangular] Right Scale Display values adjust to selected vertical scale factors.

    Polar Zoom Factor applies a zoom factor to polar displays. The default value is 1.0, representing normal Smith Chart display, with a reflection coefficient of 1.0 lying on the chart periphery. Increasing zoom keeps the 50 + j0 point the centered and displays impedances near 50 + j0 with more resolution. A zoom factor of 2.0 places reflection coefficient values of 0.5 on the chart periphery.
    There are four display zoom settings:
    Zoom = 1.0 / 1.5 / 2.0 / 2.5

    Group Delay Time Scale selections are:
    1 millisecond / div
    100 microsec / div
    10 microsec / div
    1 microsec / div
    100 nanosec / div
    10 nanosec / div
    1 nanosec / div
    100 picosec / div

    Group Delay Aperture

    • the number of adjacent frequency bins over which group delay is measured.
      Group Delay Aperture = 1 / 4 / 16 / 64

    See Appendix 4 for details on how group delay is derived
    and how data can be smoothed (or distorted) by aperture size changes.

    Note that small frequency spans significantly magnify group delay measurement noise, due to small difference frequencies between adjacent samples. Larger aperture windows and grid point counts reduce measurement noise for narrow sweeps. However, large apertures may smooth data beyond the range of interest, so carefully select an appropriate aperture size.

    Use TDR Setup for

    • setting TDR Display Start and Stop times (in nanoseconds). This enables zooming to areas of interest.
    • entering an estimated cable velocity factor value, which is used to calculate distances from the reference plane to marker points (perhaps a cable fault). The valid range is 0.4 to 0.99.
    • selecting Meters or Feet for distance display

    Marker Menu

    The Marker menu can set up to five marker frequencies and
    control display of associated parameters.

    A marker value of 0 disables it.

    Mouse Actions

    Mouse left and right buttons perform several different actions.

    Clicking left mouse button in Rectangular Display drops the first unused marker at the pointer frequency, which marker can be dragged left and right until the left button is released. Screen parameters update in real-time as markers are dragged. Existing markers can be grabbed and dragged, but it takes very precise aim and is pretty difficult to do in practice. It's usually easier to launch the Marker menu, disable that particular marker (by entering a value of zero) and then dropping and dragging a new marker. Alternatively, markers can be set coarsely by mouse, then adjusted precisely by menu.

    When all five are in use, left-clicks do not create new markers but can drag exiting ones.

    Clicking Right mouse button pops up screen coordinates and electrical parameters for the pointer location (unrelated to traces). This works in both rectangular and polar modes. That popup remains until the pointer moves some pixels, then disappears.

    Rectangular display frequencies are readily apparent, but not so much for Polar display. However, with marker parameters enabled, marker frequency displays in Polar display mode and updates in real time while being dragged. Markers move opposite to mouse movements when S11 trace is in the lower (capacitive) Polar display half.

    Vertical (up/down) mouse movements do not change marker frequency.
    Marker parameters are color-coded to match corresponding trace colors.
    Parametric values S11, S21, and SWR are displayed only if corresponding trace displays are enabled.

    Change Marker Frequency
    Allows setting any of the five marker frequencies.
    A marker set less than startFrequency or larger than stopFrequency is not displayed.
    Clear All Markers
    Sets all markers to zero, disabling their display.
    Marker Numbers
    Enable - displays the marker number above each marker.
    Disable - turns off the marker number, showing just the markers.
    Marker Parameters
    Enable - displays the marker parametric value(s) underneath marker frequency.
    Disable - turns off the marker parametric display.

    Frequency Grid Menu

    Use FreqGrid to select Frequency Grid point count, the number of measurements made from Start to Stop Frequency. Allowed values are:

    101 PointsCoarsest frequency display, but fastest measurement data acquisition
    201 Points
    401 Points
    1020 PointsFinest frequency display, but slowest measurement data acquisition

    The instrument defaults to 201 points at startup.
    More points increase display resolution,
    fewer points reduce measurement time period.
    Current FreqGrid setting also affects S-parameter text file exportation,
    which have FreqGrid individual frequency records.

    Calibration runs are fixed in size at 1024 frequency points. Checking 'Apply Calibration'
    interpolates grid frequency points to nearest calibration frequency points,
    with nearest calibration point results applied to measurements.
    With calibration points about 117 KHz apart, nearest is closer than 59 KHz.
    Unless fixtures have resonances (which is very bad anyway),
    interpolation errors for any frequency grid size will be negligible except for very long cables.

    Storage Menu

    Use Storage menu to store the current measurement set into temporary memory. This temporary memory will retain that measurement set until the program is terminated, or a new measurement set is stored.
    Setting a new stored measurement over-writes existing measurements in storage.

    Storage menu has three options:

    Store
    captures the complete raw measurement set
    (whether or not the traces are displayed) and stores it to memory.
    Recall
    retrieves the measurement set from memory and over-writes the current active measurement set.
    It does not delete or alter the raw data in storage.
    Display Storage
    a toggle that is checked when storage contents are displayed.

    A common use of the storage function is to make a measurement, verify it's useful, then 'store' the data.
    Next, some change to the device under test is made and a new measurement is made.
    Use Display Storage to compare on-screen the two measurements.

    Markers are only attached to the active display set. MARKERS ARE NOT ATTACHED TO THE STORED DATA. This helps to distinguish which data on screen are active and which are storage.
    To use markers on stored data, retrieve that data to the active set using the Recall menu item.

    Integration Menu

    Use Integration for averaging together multiple nanoVNA sweeps. 1x mean no integration. 2x averages the previous and current sweep. 4x, 8x, and 16x use exponential integration to average results. For example, at 16x, the display weights 15/16 of previous with 1/16 of new value. The integrator is RESET for selection changes and returns raw values from the next sweep. Subsequent sweeps will integrate. Changing the Frequency Grid size also resets the integrator.

    Resetting the integrator prevents large offsets from taking long times to clear integrated values and avoids waits to see initial results from changes.

    Help & Software Updates

    The help menu launches the HTML Help viewer with the TAPR help menu.

    The About command opens an 'about TAPR' menu. This menu displays the current build number of the software

    It also contains a button to launch your Internet Browser with the address of the TAPR software update website. This will display a page showing the current TAPR software available. You can compare your build number with the latest build available number shown on the web page. Be sure to REFRESH your web browser display.
    If you wish, you may download the update from here (right-click, and Save as ...)

    Exit the TAPR application before installing updates.

    Controls

    TAPR window controls change start & stop frequencies, reference & transmit signal levels, and sweep functions.
    Those controls are not shown on printed outputs.

    Frequency Controls

    Frequency controls set sweep START and STOP frequencies. Arrows increment or decrement frequencies. Controls can be set to specific values by double-clicking, which opens numeric entry dialog boxes for directly typing in desired frequencies.

    START and STOP controls display underscore characters beneath a digit. This digit will be incremented or decremented by up or down arrows. Left and right arrows change selected digit position. Controls will increment neither above 120,000,000 Hz, nor below 200,000 Hz.

    A STOP frequency must be greater than START frequency by the frequency grid size. For exampe, if grid size is 400 points, then STOP must be at least 400 Hertz greater than START.

    Apply Calibration

    The apply calibration check box is grayed-out unless a fixture calibration data set has been loaded (see calibration menu). Checking the Apply Calibration box will compensate all readings by the corrections contained in the loaded fixture calibration set. Un-checking the box disables the reading corrections.

    Measurements without any fixture calibration are not accurate, since there are uncompensated errors in cable length, fixture attenuation, etc. Further, some VNA instrument errors such as PC board trace lengths and amplitude variations are not removed if the measurement is uncalibrated. For best accuracy, measurements should have fixture calibration applied.

    Level Controls

    Reference Level adjusts how magnitude data are displayed on screen. The control value specifies the magnitude level at the top line of the display screen. When set to 0 dB, the display top line is 0 dB. Changing Reference Level optimizes trace locations.

    For example, if a DUT attenuates approximately 22 dB, that will not display at a scale of 1 dB / division, because off the screen bottom. Reference Level set to -20 dB displays a range from -20 db to -30 db at 1 db/division, making the trace visible.

    Reference Level set to positive values is useful when measuring DUTs (such as amplifiers) with output magnitudes near or above 0 dB.
    Note that VNA dynamic range extends only a few dB above 0 dB.
    External attenuators should be used with DUTs having any amount of gain.

    On-screen amplitude values displayed left-side automatically adjust when reference levels change. Small positive reference levels help make visible markers and marker numbers when measuring low-loss DUTs.

    Transmit Level should normally be left at 0 dBm. Lower values usually degrade dynamic range and accuracy of both S11 and S21 measurements. However, reduced drive level to DUTs with gain may be useful. The control has about 50 dB of adjustment range, but nanoVNA dynamic range consumes 40 dB of that range. Thus, S21 magnitude measurements effectively support less than 10 dB of level change. Attenuating CH0 stimulation to DUTs using attenuators is better.

    Magnitude values displayed automatically track changes in Transmit Level. By the way, one valid use for the Transmit Level control is to adjust output level when using the VNA as a signal generator and measured values are of no concern. In this case, the control can change transmit output signal level over a 10 dB range.

    Sweep Controls

    There are three buttons on the screen that control how the TAPR acquires data. These three buttons are:

    • Sweep Speed
    • Single Sweep
    • Free-run Sweep

    The Sweep Speed button determines the sweep dwell time for each measured sample, and if nanoVNA data are checked for measurement glitches. If set to the Fast mode, the VNA sweeps as fast a possible, and does not check the reading data for measurement glitches. As the button is successively clicked, the sweep speed will be set to the following values:

    • 30 microseconds
    • 100 microseconds
    • 300 microseconds
    • 1 millisecond
    • 3 milliseconds
    • 10 milliseconds

    The button recycles back to Fast after the 10 ms step. When the button displays any time value (but not Fast), more extensive comparison of the measured data is used to try and reject obviously defective individual data points (not always successfully). In the Fast mode these checks are bypassed, sometimes resulting in momentary glitches in the measured data. However, the Fast mode sweeps much than any of the timed modes.

    The single sweep mode triggers nanoVNA one time, and holds the measured data after that single sweep.

    The Free-run sweep button causes the VNA to trigger continuously (recurrently), so that the sweep updates as rapidly as possible. Pressing the Free-run sweep button a second time stops the recurrent sweeping. The frequency grid button is grayed-out when the VNA is sweeping, since the number of points cannot be changed during a sweep.

    One very useful setup is to use a small frequency grid, for example 100 or 200 points, fast sweep mode, and recurrent sweep. This speeds display updates and may be particularly useful when tuning a DUT such as a filter or antenna in real-time.

    Example Measurement

    The following general steps are used to measure a device under test,

    1. Make sure that detector calibration has been run
      (you do not get a warning message on program startup).

    2. Connect cables and adapters from the device under test (DUT) to nanoVNA.

    3. Either run a Fixture calibration on these cables and adaptors, or load a previously saved fixture calibration for these exact same cables and adaptors.

    4. Remove any shorts, or through connector barrels, and replace with the DUT connected from CH1 to CH0.

    5. Run a sweep of the DUT.

    6. Enable the Fixture Calibration checkbox on screen. This checkbox can be selected or deselected at any time (before or after the sweep).

    Let's look at an example DUT, a low pass filter. A single sweep of data captures all the data points shown in the following three screen shots. The different screen shots are just different views of the single data set.

    This screen shows GREEN - the S21 transfer magnitude (forward gain/loss). The screen in set for 10 dB / division. RED is the S11 return loss of the filter, again at 10 dB / division. The filter has about 60 dB loss at 50 MHz, degrading a bit at 100 MHz. The return loss of the filter is about 10-15 dB in the filter passband (200 KHZ to 40 MHZ) and is 0 dB in the stopband (above 40 MHz).

    This type of filter is called a "reflective filter" since it generates a stopband by reflecting the input signal back.

    On the next screen, the S11 (RED) trace has been turned off and only the S21 (GREEN) trace is displayed. Five markers have been set, and the display of marker parameters has been enabled. Here we can see that the insertion loss of the filter is quite good, only about 0.1 dB in the passband, and that the -3 dB frequency is about 39.85 MHz.

    The last figure shows input return S11 on a polar chart. Four markers (which must be set in the rectangular display mode) are selected, and marker parameter display is again enabled. The markers show the input magnitude and phase as well as the equivalent input impedance of the filter at each marker frequency. The filter spirals outwards from the origin, but stays between the SWR=1.5 and SWR=2.0 concentric bull's eyes until it reaches the stopband frequency, when it rapidly spirals out of the center toward the periphery of the chart. The light gray concentric SWR circles on the polar chart are:

    • SWR = 1.5 (Innermost)
    • SWR = 2.0
    • SWR = 3.0
    • SWR = 5.0
    • SWR = 10.0 (Outermost)

    Due to small ripple errors in the directional coupler, the stopband return loss is calculated as negative a few tenths of a dB (which is wrong). This is shown at marker 4. The polar chart is very non-linear and changes in return loss of tenth's of a dB cause the distance from the center of the chart to change a lot when the return loss is near zero dB, but these changes are minimal when the return loss is more than a few dB.

    TAPR software currently compensates for frequency dependent errors. Starting with version 1.4 the software models the coupler V/I tracking error and coupler directivity.
    It compensates readings by subtracting the coupler directivity and applying a sinusoidal magnitude correction vs. detected phase angle to S11 readings.

    By the way, these plots are of a high-quality Bencher YA-1 low-pass-filter designed for HF amateur radio.

    Other example measurements

    Some Cautions

    • High quality variable attenuators may have several tenths of a dB loss at their 0 dB setting. This must be taken into account when characterizing filter insertion loss.

    • Attenuator resistance may not be exactly 50.0 ohms. This will degrade 50-ohm calibration.

    • Attenuators have finite length. Thus an attenuator inserted (or removed) after fixture calibration impacts phase angles of the setup from the Fixture correction because the distance to the 'SHORT' and 'OPEN' used for fixture calibration has changed.

    • VNA CH1 connector input impedance is only approximately 50 ohms. When measuring returns of networks with minimal attenuation, phase and amplitude components may include errors due to this CH1 connector deviation from an ideal 50 ohm load. To improve the measurement either:

      • Terminate the unit under test with a 50 ohm termination prior to S11 measurements, or

      • Insert 10 dB attenuation between DUT output and VNA CH1 connector. This will assure that the DUT sees more accurate 50 ohm termination impedance.

    Common Display Results

    Some common measurements will result in the displays shown in this section. These can be used to verify that you have correctly calibrated and setup the VNA and the test cables. These results are typical, but you may realize slight differences depending on the cables, instrument measurement errors, etc.

    Also, there may be minor variations between consecutive instrument sweeps due to measurement variation or other artifacts. These sweeps were performed in the 'Slow' mode.

    • Shorted cable - with and without cable calibration. The following charts show the polar and rectangular displays of a shorted cable on the CH0 connector. The fixture calibration was performed with the same cable and short as the measurement, so the fixture and amplitude compensation should match (excepting sweep-by-sweep measurement errors, instrument temperature change, etc.).


    3 meter cable terminated in 'Short' without fixture calibration applied.


    3 meter cable terminated in 'Short' with fixture calibration applied.

    • Open cable - with and without cable calibration. The following charts show the polar and rectangular displays of an open cable on the CH0 connector. The fixture calibration was performed with the same cable as the measurement, so the fixture and amplitude compensation should match (excepting sweep-by-sweep measurement errors, instrument temperature change, etc.).


    3 meter cable terminated in ''Open' without fixture calibration applied.


    3 meter cable terminated in ''Open' with fixture calibration applied.

    • Terminated cable - with and without cable calibration. The following charts show the polar and rectangular displays of a reasonable quality 1 meter 50-ohm cable terminated with a 50-ohm load on the CH0 connector. The fixture calibration was performed with the same cable and termination as the measurement, so the fixture and amplitude compensation should match (excepting sweep-by-sweep measurement errors, instrument temperature change, etc.).


    1 meter cable terminated in 50-ohm load without fixture calibration applied.
    Polar scale is zoomed 2.5:1 to show more details.


    1 meter cable terminated in 50-ohm load with fixture calibration applied.
    Polar scale is zoomed 2.5:1 to show more details.

    Note: many cables and adapters connected to nanoVNA may exhibit much poorer return loss than shown here.


    Rectangular display of S11 for 1 meter cable terminated by 50-ohm load without fixture calibration applied.


    Rectangular display of S11 for 1 meter cable terminated by 50-ohm load with fixture calibration applied.

    Appendix 1: S-Parameter Basics

    This overview briefly covers reflection and transmission measurements using S-parameters and plotting them on Rectangular and Polar Displays.

    Linear two port devices are characterized by ratios of signals returned for signals injected at their ports. The S-parameter model provides all linear characteristics for two port devices at discrete spot frequencies, specifically input return, forward gain, reverse gain, and output return as four complex numbers for each spot frequency. To characterize devices, S-parameters are usually measured for ranges of spot frequencies.

    In the diagram below, a1 is the voltage input to port one, and a2 is the voltage input to port two; b1 is the voltage out of port one, while b2 is the voltage out of port two. S-parameters are defined as voltage ratios. S11 (input return) is the ratio b1/a1. S21 (transfer gain) is the ratio of b2/a1. The voltage exiting port one of the block is the sum of the input return loss times the input voltage plus the reverse gain times the voltage injected into port two of the block. S-parameters are defined in the following two equations:

    b1 = a1 * S11 + a2 * S12

    b2 = a1 * S21 + a2 * S22

    VNAs are essentially transmission-reflection test sets. They apply stimulus a1 to port one of devices while measuring b1 and b2, then calculate S11 (because a2 is zero).

    • port 2 of the block receives no stimulus (a2 = 0). To derive values for S12 and S22, swap ports in the test fixture so that VNA stimulus becomes a2.

    S11 and S21 are generally both complex numbers - in other words, devices reflect energy back to the input for any spot frequency with reflection magnitude and phase both generally non-zero. Similarly, two-port devices typically change both amplitude and phase of b2 from a1. A VNA measures and displays input reflection loss and forward transmission gain as complex numbers.

    Polar Display

    Polar chart help visualize input impedance real and reactive components. Since reflection ratios S11 are always <= 1.0 for passive networks, those values can be displayed in reactive vs real format on a polar charts. On the other hand, two port network forward gains typically include both loss and gain values, exceeding unity. That confounds polar charts, where polar chart circumference typically represents unity magnitude. Note that polar charts have no concept of frequency; S11 samples for any spot frequency may display anywhere on polar charts. VNAR4 software connects sample dots in lines; subsequently extracting frequency information along those lines wants markers.

    S11 polar values are directly plotted, with S11 vectors originating at chart center, vector lengths being return loss magnitudes, and vector directions being S11 phase angles. The chart left side corresponds to +/-180 degrees and lower impedances, while the right side corresponds to 0 degrees and higher impedances.

    Rectangular Display

    Rectangular display works for both S11 and S21 values. Return losses are simply displayed vs. frequency, but sorting complex impedance gets harder. Two-port networks' transfer complex impedances are less interesting than their gains and phase delays vs. frequency, Rectangular display directly plots those S21 parameters.

    Network transfer gain/loss ratio is labelled in dB on rectangular charts' right side. Return loss or transfer gain phase is plotted in degrees vs. Hertz. Rectangular chart top and bottom are +180 and -180 degrees, respectively, 'wrapping around' from bottom to top because +/-180 degrees are identical. Rectangular chart top and bottom both represent 180 degrees.

    Phase values varying slightly above and below 180.0 degrees provoke confusing rectangular displays, since what might nominally be nearly straight traces can instead varying wildly up and down, alternately near top and bottom lines.

    Group Delay

    Network time delays are interesting, e.g. for TDR. Network group delay is the negative of rate of change of phase vs frequency and helps determine network electrical length for cables or stubs.

    Group delay and spatial length measurement determine velocity factor. Cable phase velocity is elapsed time for light traveling a cable length divided by cable's electrical time delay. Light travels 11.8 inches per nanosecond (nearly 1 nanosecond per foot). 10 feet of free space delays light 120/11.8 ~ 10.17 nanoseconds. The velocity factor for 10 feet of cable with 15 nanoseconds electrical delay is:

    10.17 nsec (free space delay) / 15 nsec (measured delay) = 0.68 velocity factor.

    SWR

    Network SWR at any specific frequency describes of how nearly that network input matches a 50 ohm non-reactive load when that network's output is terminated in 50 ohms. An SWR of 1.0 means that the network has exactly 50-ohm input impedance. SWR is a real number directly related to input return magnitude, ignoring input reflection phase. S11 is a complex number representing both magnitude and phase angle of input return.

    An SWR of 2.0 means that an input impedance is either 25 ohms resistive, 100 ohms resistive, or some complex value with either of those magnitudes containing non-zero reactance. SWR cannot distinguish among those networks cases for non-unity values, while S11 can.

    Each constant SWR value describes any impedance lying on a circle centered in polar charts. The polar chart center is 50+j0 ohms, with SWR of 1.0 (its circle is a point). All other SWR values are pointless. Higher SWR values correspond to circles of increasing radius centered on the chart, with the circle at polar chart periphery representing infinite SWR.

    This table relates SWR to input return loss magnitude:

    SWR Return Loss (dB)
    1.00 infinite
    1.03 36.60
    1.05 32.25
    1.10 26.45
    1.15 23.12
    1.20 20.83
    1.30 17.70
    1.40 15.56
    1.50 13.98
    1.60 12.74
    1.70 11.73
    1.80 10.88
    1.90 10.16
    2.00 9.54
    2.50 7.36
    3.06.02
    4.04.44
    5.03.52
    10.01.74
    20.00.87
    infinite 0.00

    Appendix 2: Calibration Details

    Detector Calibration

    Detector calibration applies a range of signals from approximately 0 dBm down to -90 dBm to each magnitude detector (transmission and reflection) repeatedly over the range 200 KHz to 120 MHz. Calibration software models each detector response function (voltage vs. level) at each frequency. The model consists of linear and noise floor portions. Software models the linear portion by generating a linear least-squares regression estimator for amplitude measurements and a correlation coefficient. It then generates an empirical exponential noise floor estimator that fits a smooth curve for a complete linear + noise floor response.

    The detector calibration routine similarly characterizes both phase detectors. Phase calibration is a bit more complex than amplitude calibration. It uses a fixed length of cable and varies frequency to develop linear frequency-dependent phase excitation to the detectors. It then finds phase detector voltage levels corresponding to - 180, 0, and +180 degrees (the positive peak, midpoint, and negative peak voltages respectively). Phase detectors have periodic error components, and the detector calibration routine uses a linear delay model to build a table to correct those periodic errors.

    All those data sets are then saved in detector.ica in the TAPR program startup directory.

    S21 Compensation

    Fixture calibration measures received signals through a small bullet or barrel connector. It measures received magnitude and phase at 1024 points from 200 KHz to 120 MHZ and stores those data in a table in the Fixture calibration file (which is named during the Fixture calibration save operation). When the 'Apply Calibration' box is enabled, the calibration compensation routine divides actual S21 measurements by the nearest 'Through' calibration constant (which is a complex number) at each measurement frequency.

    S11 Compensation

    The calibration compensation for S11 derives three parameters of a virtual S- parameter error matrix computationally inserted between the VNA CH0 connector and the DUT. With three measurements and three unknowns, values of virtual S-parameter error matrix can be resolved. These three parameters are:

    Et - the tracking error. This is (S21error * S12error) product of the virtual error matrix.

    Ed - the directivity error. This is S11error of the virtual error matrix.

    Es - source impedance mismatch. This is the S22error of the virtual error matrix.

    The virtual error matrix is removed from S11 measurements (when 'Apply Calibration' is active) to compensate for these errors in reflection measurements.

    Fixture Calibration Data Set

    Fixture calibration data sets include the following.
    Values can be viewed (by the curious) from the Trace menu.
    Polar display is only for reflection measurements (S11) and related raw and derived calibration constants.
    Rectangular display can show both S11 and S21 measurements and related calibration constants.

    Error CompensationComplex plot
    Et - Tracking amplitude and phase
    for cable from nanoVNA CH0 to the DUT
    Es - Source Mismatcherror from imperfect source impedance termination
    Ed - Directivitydue to finite bridge directivity
    Raw Calibration DataData source during calibration
    (or loaded from a calibration file)
    S11shortshorted CH0 during calibration
    S11openunterminated CH0
    S11termCH0 terminated by "known" 50-ohm load

    Appendix 3: Software Installation, Registry

    This TAPR VNA application should work with the same driver as other nanoVNA software.
    When you first apply power to nanoVNA and attach it to a Windows PC via its USB cable, its USB device ID may not be found. The New Hardware Detected wizard will ask if a disk or file is available for the new device. A recommended driver is:

    STMicroelectronics Virtual COM Port Driver

    The wizard creates a registry key associating nanoVNA's USB vendor and product ID to a device driver.
    When nanoVNA is subsequently plugged into that USB host port, it avoids going through the selection process again.

    nanoVNA uses the following USB IDs: Vendor_ID: 0483 Product_ID: 5740

    The Wizard makes a registry entry in order to associate the device with the driver needed to communicate with it (usbser.sys). This registry can be removed (but need not be removed) if TAPR software is uninstalled. Registry keys are normally left in place, but if for some reason you want, it can be deleted using Regedit.

    Different versions of windows have different Registry directory structures, and the keys are placed in different locations.

    • You can delete the Registry key associated with this particular USB device (VID 0483, PID 5740),
      in which case the next time it is plugged in, the new hardware detected wizard will run.
    VersionRegistry Key Location
    Win98, ME\HKEY_LOCAL_MACHINE\Enum\USB
    Win NT, 2000, XP\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB

    Appendix 4: Group Delay and Aperture

    Group Delay is an equivalent time delay through a device or network.
    Mathematically, it is defined at the negative of the rate of change (the slope) of phase φ vs. frequency ω:

    GroupDelay = - dφ / dω

    In a VNA, a measurement sweep consists of a number of individual discrete data points taken at single spot frequencies. Group delay is calculated by looking at two adjacent frequency samples - current samplen and next samplen+1, being taken at frequencies fn and fn+1. The difference in phase is calculated by subtracting the phase reading taken at frequency fn from the phase reading taken at frequency fn+1. The delay is then calculated by converting degrees into radians and the sign is changed. Unfortunately, this finite difference process can result in large amounts of noise in readings, due to small errors in measured phase, or from actual noise in measurements.

    One way to reduce displayed noise is to average group delay readings over more samples. This delay reading is less noisy, but it may miss some important rapid changes in phase response. TAPR allows selecting the sample averaging count. The count of samples averaged is known as measurement aperture size.

    An aperture size of 1 disables averaging, and measurements are taken between adjacent frequency samples. The aperture frequency window is thus fn+1 - fn.

    An aperture size of 64 means that delays are calculated by subtracting the phase measured at frequency sample fn+32 from the phase measured at frequency sample fn-32. Thus the reading spans 64 frequency differences (65 samples). One drawback to this averaging technique is that the phase could change through several 360 degree rotations between fn-32 and fn+32. This would result in a group delay calculation being far less than the real group delay since the VNA cannot resolve phase changes exceeding 360 degrees. Thus aperture should be used with appropriate caution.

    Aperture Shortening

    TAPR software's aperture window concept has difficulty for samples near limit (start and stop) frequencies. Lacking samples below a first measurement at start frequency fn, TAPR lacks phase value samples for frequencies < fn. For aperture windows of 64, software shortens effective aperture windows by using fn to fn+32 (rather than fn-32 to fn+32). Effective apertures are thus 32 (not 64) and skewed. The same shortening and skew happens at stop frequencies (no samples for > fn).

    Software similarly shortens aperture windows for samples nearer than half aperture windows to limit frequencies, by a lesser amount for each sample farther from limits. Once the 32nd frequency sample distant from a limit frequency is reached, all samples necessary for 64-point apertures are present, and aperture windows are no longer shortened.

    For aperture sizes of 4 and 16, worst case shortening is to effective aperture sizes of 2 and 8 samples, respectively, near limit frequencies.