This Matlab script, VNA_2_touchstone_s2p_matlab.m takes two separate .s2p files from a NanoVNA V2 saved from within the nanovna-saver program and integrates
them into a single 2 port S-Parameter touchstone.s2p file.
The NanoVNA V2 is a single path VNA. That means it can measure S11 and S21 of a 2 port network. In order to obtain S12 and S22, the 2 port device (DUT)
must be reversed and a separate measurement obtained, these two separate measurements can then be merged to get the full set of 2 port S-Parameters.
There is also a similar Octave script, VNA_2_touchstone_s2p_octave.m that does the same thing if you don't have access to Matlab. Octave is a free, open source Matlab like program.
However, it is not 100% Matlab compatible, hence the 2 separate scripts.
*VNA_2_touchstone_s2p_octave.m*
and
*VNA_2_touchstone_s2p_matlab.m*
can both be found in the Files section.
Greg
Beware of cheap underperforming clones
As of 2023 there are many badly performing clones on the market. V2/3GHz NanoVNA uses parts like ADF4350 and AD8342 which are costly and clones have been cutting costs by using salvaged or reject parts.
See official store and look for V2 Plus4/V2 Plus4 Pro versions only to avoid getting a bad clone. We have stopped selling V2.2 versions since October 2020, so all V2 hardware that are not Plus or Plus4 are not made by us and we can not guarantee performance.
Click here to join and see most recent posts.
Software for generating a full 2 Port (S11 S21 S12 S22) S-Parameter Touchstone.s2p file from 2 separate single path VNA data sets.
KX4PQ 2024/01/21 19:57
To reply to this topic, join https://groups.io/g/NanoVNAV2