S-Parameter Export
The NanoVNA-H can export measurement data in standard Touchstone format (.s1p and .s2p files) for use in simulation software, documentation, and data analysis.
Touchstone Format Overview
Section titled “Touchstone Format Overview”Touchstone files are industry-standard formats for S-parameter data:
| Format | Contents | Use Case |
|---|---|---|
| .s1p | S11 only | One-port measurements (antenna, load) |
| .s2p | S11 and S21 | Two-port measurements (filter, amplifier) |
Save S-Parameter File
Section titled “Save S-Parameter File”- Complete your measurement and verify data quality
- Tap the screen to open the menu
- Navigate to
SD CARD - Tap
SAVE S1PorSAVE S2P - The file is saved with an auto-generated filename
File Format Details
Section titled “File Format Details”S1P Format (One-Port)
Section titled “S1P Format (One-Port)”! NanoVNA-H Touchstone Export# Hz S RI R 5050000 0.123456 0.654321100000 0.234567 0.543210...Header line meanings:
# Hz- Frequency in HertzS- S-parameter dataRI- Real/Imaginary formatR 50- Reference impedance 50 ohms
S2P Format (Two-Port)
Section titled “S2P Format (Two-Port)”! NanoVNA-H Touchstone Export# Hz S RI R 5050000 0.123 0.456 0.789 0.012 0.345 0.678 0.901 0.234100000 0.234 0.567 0.890 0.123 0.456 0.789 0.012 0.345...Each line contains: frequency, S11_re, S11_im, S21_re, S21_im, S12_re, S12_im, S22_re, S22_im
Shell Commands
Section titled “Shell Commands”Export via serial console (requires PC software to save):
# Get measurement datadata 0 # S11 data (real imag pairs)data 1 # S21 data (real imag pairs)
# Get frequency listfrequenciesThe data is output as space-separated real/imaginary pairs, one point per line.
Using Exported Files
Section titled “Using Exported Files”In Simulation Software
Section titled “In Simulation Software”Import .s1p/.s2p files into:
- Keysight ADS
- AWR Microwave Office
- QUCS
- LTSpice (with Touchstone support)
- HFSS
- Sonnet
In Python
Section titled “In Python”import skrf as rf
# Load S1P filenetwork = rf.Network('DATA0001.S1P')print(network)
# Plot S11network.plot_s_db()In MATLAB
Section titled “In MATLAB”S = sparameters('DATA0001.S2P');rfplot(S)Practical Examples
Section titled “Practical Examples”Document Antenna Performance
Section titled “Document Antenna Performance”- Connect antenna to CH0
- Calibrate and sweep
- Save as S1P file
- Import to simulation or documentation
Characterize a Filter
Section titled “Characterize a Filter”- Connect filter between CH0 and CH1
- Perform full 2-port calibration
- Save as S2P file
- Use in circuit simulation
Create Reference Data
Section titled “Create Reference Data”- Measure known component
- Save S-parameter file
- Use as reference in future comparisons
Data Quality Tips
Section titled “Data Quality Tips”SD Card Requirements
Section titled “SD Card Requirements”- FAT32 formatted SD card
- Adequate free space (each file is typically a few KB)
- Insert card before powering on for best reliability
File Management
Section titled “File Management”Files are saved in the root directory of the SD card:
/DATA0001.S1P/DATA0002.S2P/CAPTURE001.BMP...Retrieving Files
Section titled “Retrieving Files”Options for accessing saved files:
- Remove SD card: Insert in computer’s card reader
- SD card menu: Browse files on the NanoVNA-H display
- Shell commands: Use
sd_listandsd_readcommands
# List files on SD cardsd_list
# List only S-parameter filessd_list *.S?P