Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calibrate the NanoVNA through Python? #78

Open
0xCoto opened this issue Dec 18, 2021 · 3 comments
Open

How to calibrate the NanoVNA through Python? #78

0xCoto opened this issue Dec 18, 2021 · 3 comments

Comments

@0xCoto
Copy link

0xCoto commented Dec 18, 2021

I've managed to get everything working using the provided Python scripts and I am able to output touchstone files, plot them etc., but I see that the |S21| values disagree between the NanoVNA alone (i.e. not connected to python/a computer) and the ones the python script is measuring.

My understanding is that once I calibrate the device (SOLT) and connect it to the computer, the python interface does not seem to pick up the latest calibration on file. Is there a simple way to either load the latest calibration on file or manually re-run the SOLT calibration again through python, or do I have to write something up and save each state (OPEN, SHORT, LOAD, THRU) as a separate sNp file and apply the calibration locally?

@Vinc0110
Copy link

Hi. Have a look at the scikit-rf package (imported via skrf). It offers SOLT calibration and others, see this exmaple:

https://scikit-rf.readthedocs.io/en/latest/tutorials/Calibration.html#SOLT-Example

@Vinc0110
Copy link

In case anyone is still watching this issue:
The latest package release of scikit-rf (version 0.22.0) now includes a dedicated instrument class for the NanoVNA V2. The usage is documented and demonstrated in this example notebook:
https://scikit-rf.readthedocs.io/en/latest/examples/metrology/NanoVNA_V2_4port-splitter.html

@mrleongalaxyum
Copy link

Is it possible to load a calibration slot from the device using the provided nanovna.py? Although I've already recalled a cal slot on the device itself, when I run the python script, I get non-calibrated values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants