This example requires external dependencies and cannot be run in the browser.

RF Network - One Port

This is an example of a simulation of a Radio Frequency (RF) network with PathSim.

In this example, we are using the block RFNetwork provided in PathSim to create the state-space model of an N-port RF network. This block uses the `scikit-rf `__ package to convert the frequency domain data into a state-space model. This conversion is performed using a `Vector Fitting `__ method for fitting a rational function (model) to a set of frequency‐domain.

Let's first make all the necessary import

Python
Loading...

The block RFNetwork takes as input either a `Touchstone file `__ (.sNp file) or a scikit-rf `Network `__. An N-port network has N inputs and N outputs.

Python
Loading...

Under the hood, scikit-rf performs a Vector Fitting of the frequency data and creates a PathSim State-Space model.

In the following, we use a gaussian pulse to simulate the impulse response of the RF block. A spectrum analyzer (Spectrum) is used to display the frequency response of the response. This frequency response is then compared to the original frequency data.

Python
Loading...
Python
Loading...

Below, we compare the PathSim's frequency response to the original measurement data and to their Vector Fitted model calculated with scikit-rf. The Vector Fitted model and the PathSim's frequency response are in perfect agreement:

Python
Loading...