/NanoVNA-MATLAB

MATLAB scripts for NanoVNA vector network analyzer. Connect, save S2P, display Logmag, Smith chart and TDR step response

Primary LanguageMATLABGNU General Public License v3.0GPL-3.0

Language License

NanoVNA-MATLAB

MATLAB scripts for NanoVNA vector network analyzer. Connect, save S2P file and display Logmag, Smith chart and TDR step response

Overview

With these MATLAB scripts you can connect to your NanoVNA, execute commands, get S11 and S21 data, save it to S2P file and plot LOGMAG, SMITH chart and TDR step response. All can be done from MATLAB environment and it don't requires any external application.

Instructions

  1. Make sure NanoVNA COM port drivers are installed (see NanoVNA drivers section)
  2. Connect your NanoVNA before MATLAB start
  3. Start MATLAB and open nanovna.m script
  4. Enter correct COM port name (e.g. "COM3")
  5. Run the script

Please note, you're needs to connect NanoVNA before opening MATLAB.

Screenshots

screenshot

screenshot-tdr

NanoVNA drivers

If you don't have STM32 Virtual COM port driver, you can download it from st.com (registration required): https://my.st.com/content/ccc/resource/technical/software/driver/70/30/29/18/96/3e/4f/3b/stsw-stm32102.zip/files/stsw-stm32102.zip/jcr:content/translations/en.stsw-stm32102.zip