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

Allow Touchstone files for calibration #727

Merged
merged 4 commits into from
Nov 28, 2024
Merged

Conversation

EnPassant123
Copy link
Contributor

@EnPassant123 EnPassant123 commented Nov 27, 2024

Please check the type of change your PR introduces:

  • [] Bugfix
  • [*] Feature
  • [] Code style update (formatting, renaming)
  • [] Refactoring (no functional changes, no API changes)
  • [] Build-related changes
  • [] Documentation content changes
  • [] Other (please describe):

What is the current behavior?

Right now, you can either use ideal values or use coefficients (if your cal components are not ideal). However, if you use a VNA to measure your calibration kit, you just get a S1P file. While it is possible to derive the coefficients for the short and open, the load seems to be more complicated, especially at higher frequencies.

What is the new behavior?

You are now able to input S1P files for calibration.

Does this introduce a breaking change?

  • [] Yes
  • [*] No

Other information

I imported this S11 file for the open:
image

My results after calibration:
image

You can see that at 8GHz the phase is roughly 10 degrees.

For the load, I imported the blue trace here (S22):
image

Here are the results after calibration:
image

(The VNA loses directivity above 6.3GHz which is why the return loss has spikes).

Here is what the change looks like:
image

Copy link
Collaborator

@zarath zarath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, now I just need a metrology grade VNA to get references for my cal standards :-)

@zarath zarath merged commit ee167e5 into NanoVNA-Saver:main Nov 28, 2024
2 checks passed
zarath pushed a commit to zarath/nanovna-saver that referenced this pull request Nov 30, 2024
* Update Calibration.py
* Update Touchstone.py
* Update CalibrationSettings.py
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

Successfully merging this pull request may close these issues.

2 participants