Comments (3)
Hi @shabaz123 ,
The code you provided looks good to me.
The OpenShort de-embedding is based on the assumption that the embedding network (here the connected cables) is shorter than the wavelength of the RF signal. Therefore, longer cables result in lower accuracy.
In this case, if the VNA has an electrical length correction function, it is recommended to use it.
Alternatively, the following methods are available for electrical length correction using scikit-rf.
import skrf as rf
import matplotlib.pyplot as plt
dut_fname = './ns-dut-148.s1p'
open_fname = './ns-open.s1p'
corrected_dut_fname = './ns-dut-corrected.s1p'
# read the two files
dut_ntwk = rf.Network(dut_fname)
open_ntwk = rf.Network(open_fname)
# Electrical length compensation
lossless_tline = rf.media.DefinedGammaZ0(frequency=dut_ntwk.frequency, z0_port=None, z0=50, Z0=None, gamma=1j)
electrical_length = open_ntwk.s_deg[:,0,0] / 2
corrected_dut_ntwk = lossless_tline.line(electrical_length, unit='deg') ** dut_ntwk
# save the corrected DUT network
corrected_dut_ntwk.write_touchstone(corrected_dut_fname)
# plot the results on a Smith chart
dut_ntwk.plot_s_smith(lw=2, label='Uncorrected')
corrected_dut_ntwk.plot_s_smith(lw=2, label='Corrected')
plt.show()
from scikit-rf.
Hi @keikawa
Thank you for this! I just tried your code, and the corrected plot result is superb : )
The diagram here shows the setup I had used and the approximate lengths of cables:
Since I was only interested in 10MHz to 1GHz, I thought the lengths may have been fine. In any case, I'm very happy that the electrical length compensation method of de-embedding works, and I can run with this. My VNA is a very entry-level product, it doesn't have an automatic way of doing this.
Incidentally, to hopefully contribute back to the project a bit, I have forked scikit-rf and created a branch and hope to add code for the FPC1500 to become a supported VNA for control. I have made a start, but the command seems to be missing in the VNA user manual to retrieve vector measurements (I can retrieve scalar!), so I've raised a case with R&S, and will continue with that once they reply.
Thanks again for your help.
from scikit-rf.
Closing, thank you for the help!
from scikit-rf.
Related Issues (20)
- Uncertainties in Vector Fitting fit parameters HOT 11
- vector fit crashes when npoles >= npoints/2 HOT 3
- some observations about vectorfit operation
- Tests are failing HOT 11
- add statics function i.e. violin plots for a number of sample measurements HOT 1
- Analytical Matrix Inversion in subnetwork growth (Filipsson/Compton) vs General Numerical Inversion following Hallbjörner HOT 9
- Trying to use pre-commit, doesn't like the .pre-commit-config.yaml regex. HOT 3
- S-parameter calculation incorrect for 3-port circuit HOT 46
- Required keyword argument names HOT 2
- z2s with Complex Reference Impedance HOT 2
- One possible idea to speed up the C attribute of Circuit class HOT 3
- darwin aarch64 skrf/calibration/tests/test_calibration.py failing with divide by zero (determinate calculations) HOT 4
- How to release Network object ? HOT 2
- How to perform port cropping? HOT 3
- Relation of Z-Parameters to Y-Parameters: To be, or not to be HOT 6
- scikit-rf port to .Net C#. Help Needed! HOT 3
- Google Group "scikit-rf" still exists and is full of spam HOT 3
- PR Labeler does not work HOT 1
- skrf.NetworkSet.interpolate_from_params raises exception if any identical parameter values are in a network set where as skrf.NetworkSet.interpolate_from_network using the same parameters does not. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-rf.