Programmer's Guide
pvpg r2
Vector Network Analyzer
PicoVNA
®
Contents
I
Copyright © 20172019 Pico Technology Ltd. All rights reserved.pvpg r2
Contents
1 Welcome ............................................................................................................................. 1
2 Introduction ......................................................................................................................... 2
1 Software license conditions .................................................................................................................. 2
2 Trademarks ............................................................................................................................................ 2
3 System requirements ............................................................................................................................. 3
4 Installing the SDK ................................................................................................................................... 3
3 Programming with PicoVNA 2 .......................................................................................... 4
4 API functions ...................................................................................................................... 5
1 Command summary .............................................................................................................................. 5
2 Communications .................................................................................................................................... 7
1 FND() - discover instrument ...................................................................................................... 7
2 FNDSN() - discover instrument by hardware serial number .................................................... 8
3 CloseVNA() - close instrument .................................................................................................. 9
4 ResetErr() - Reset serial communications error flag .............................................................. 10
3 Calibration ............................................................................................................................................ 11
1 SelectKit() - create kit [dialog] ................................................................................................. 11
2 SetKit() - create kit ................................................................................................................... 12
3 SetFreqPlan() - set frequency plan ......................................................................................... 14
4 SetCWmode() - set CW sweep plan ........................................................................................ 15
5 SelectCal() - calibrate and set frequency plan ....................................................................... 16
6 MeasCal() - measure calibration standard ............................................................................. 17
7 AppCal() - apply calibration ..................................................................................................... 19
8 SelectP1dB() - calibration and measurement [dialog] ........................................................... 20
9 SelectAMPM() - AM-PM calibration and measurement [dialog] ........................................... 21
10 DoP1dBCal() - P1dB Calibration ........................................................................................... 22
11 DoAMPMCal() - AM-PM Calibration ...................................................................................... 23
12 SetRXQ() - set quiescent point of receiver ........................................................................... 24
4 Measurements ..................................................................................................................................... 25
1 SetTrig() - set sweep trigger mode ......................................................................................... 25
2 Measure() - measure one sweep (S11, S21, S11+S21, orAll’ using current calibration) ..... 26
3 DoP1dBMeas() - measure P1dB ............................................................................................. 27
4 DoAMPMMeas() - measure AM-PM ...................................................................................... 28
5 Signal processing ................................................................................................................................. 29
1 SetEnhance() - set enhancement parameters ........................................................................ 29
2 SetRef() - set reference plane ................................................................................................. 30
3 SaveToMem() - save measurement to memory .................................................................... 31
4 AppMemMath() - apply memory math ................................................................................... 32
5 SetSysZo() - set system impedance ....................................................................................... 33
6 ZConversion() - impedance conversion utility ........................................................................ 34