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