Author Topic: NanoVNA Custom Software  (Read 524767 times)

0 Members and 3 Guests are viewing this topic.

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1300 on: October 24, 2021, 04:18:48 pm »
Adding something like this on a separate tab would be simple enough.  Maybe allow user to select between gain and stability circles on the same graphs...  I try to keep the basics on that main menu and jamming it onto that may be a bit much.   

Hi, Joe,
that would be great to see this new stability analysys features.
The basic idea behind the request I've posted was to have several graphs, as described in this introductory paper by Les Besser:
https://designingelectronics.com/pdfs/AvoidingRFOscillation.pdf

This would utilise K-factor, B-factor (aka the determinant of the S-matrix), and the mu-factor.

Other graphs, including the  Source & Load stability circles, might be helpful in case the more detailed study is needed.

From available books about VNA Measurements, some good examples could be taken, f.e., from
Joel Dunsmore's
Handbook of Microwave Component Measurements

others examples could be taken, f.e.,  from NI-AWR software or Keysight ADS documentation, etc.

Alex
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1301 on: October 24, 2021, 06:02:43 pm »
Are you using these tools (ADS AWR) today?  It may be helpful to see some screenshots of how you would like the data formatted.  It may also be helpful for you to go through an example using these tools. 

Also, I am very curious what you are using for your setup?  Which VNA, transfer relay?   Could you post a picture?   You're the first person that I've seen mention using, or wanting to use all four S-parameters.   

Shown are both the stability and mapping circles.  They, along with the readouts are selected by the cursor.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1302 on: October 25, 2021, 01:31:08 am »
After some thought, the plan is to add onto the 2-Port Plot tab. 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1303 on: October 25, 2021, 08:12:42 am »
After some thought, the plan is to add onto the 2-Port Plot tab.
That's would be OK, thank You.
Though I am unfamiliar with Unilateral factor.
Does it have the same definition as the mu-factor mentioned in the .pdf paper above?
In fact, most modern VNAs have this stability analysis option built-in.
At my previous job I had access to all these tools, but unfortunately, now I've been fired out, so now I am just in a process of setting up my home lab, where I cannot afford any expensive equipment.
For me it's just a hobby now, nothing more.
I shall post here some images with stability analysis graphs, but not too soon.
What's might be interesting to see in the SW features is the ability to plot a family of load stability circles on one graph simultaneously in case of broadband stability analysis, for implemented frequency sweep, as it is shown in the last section of L. Besser paper
Thanks,
Alex
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1304 on: October 25, 2021, 10:48:15 am »
After some thought, the plan is to add onto the 2-Port Plot tab.
That's would be OK, thank You.
Though I am unfamiliar with Unilateral factor.
Does it have the same definition as the mu-factor mentioned in the .pdf paper above?
In fact, most modern VNAs have this stability analysis option built-in.
At my previous job I had access to all these tools, but unfortunately, now I've been fired out, so now I am just in a process of setting up my home lab, where I cannot afford any expensive equipment.
For me it's just a hobby now, nothing more.
I shall post here some images with stability analysis graphs, but not too soon.
What's might be interesting to see in the SW features is the ability to plot a family of load stability circles on one graph simultaneously in case of broadband stability analysis, for implemented frequency sweep, as it is shown in the last section of L. Besser paper
Thanks,
Alex

That's too bad as I anticipated with you asking, you had a way to verify the results but it sounds like you don't have a way to run the software. 

The Unilateral factor is not the same as Mu.   I have the calculations for u1 and u2 but am not displaying them in my software yet.  See if you can get to the following link:

https://edadocs.software.keysight.com/pages/viewpage.action?pageId=5920607

Plotting a family of circles is easily done in a text book, but I'm not sure how it would be accomplished in the real world.   These are data formatting questions that I had hoped you would clear up by showing how your tools work.    Considering there is a circle for each point collected.  Even the original NanoVNA will capture 101 data points, so 101 circles.   OWO mentions the V3 supporting 10,000 data points. 

https://nanorfe.com/nanovna-v3.html

Calculating 10,000 data sets shouldn't pose much of a problem but plotting them may be a bit much.   The METAS and AppCAD software doesn't support amplifier stability.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1305 on: October 25, 2021, 01:30:58 pm »
Because AppCAD and METAS are so limited, I started to look for another program to perform some sort of sanity check.   This program is JAVA based and may be helpful.   

https://personal.utdallas.edu/~frensley/

I have included the touchstone file created with the V2Plus4 that was used to generate the attached plots.   At least my math appears to be correct for the stability coefficients, or at least matches up with what they show.    A good sign.   

Notice that they have some support for gain as well which is something I may add.   They do not support the stability circles.   Maybe there are other free tools that could be used to verify this part.   

Quote
In fact, most modern VNAs have this stability analysis option built-in.

The old Agilent PNA I bought doesn't have any features like this.  They don't even include TDR with the base install.  Maybe someone with a new VNA can load the file and show some screen shots. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1306 on: October 25, 2021, 01:59:49 pm »
CMTs software does not appear to have support for it.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1307 on: October 25, 2021, 08:15:59 pm »
After much hair pulling, the power calculation is sorted or at least matches with the Texan's software.

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1308 on: October 26, 2021, 07:33:48 am »
Because AppCAD and METAS are so limited, I started to look for another program to perform some sort of sanity check.   This program is JAVA based and may be helpful.   

https://personal.utdallas.edu/~frensley/

I have included the touchstone file created with the V2Plus4 that was used to generate the attached plots.   At least my math appears to be correct for the stability coefficients, or at least matches up with what they show.    A good sign.   

Notice that they have some support for gain as well which is something I may add.   They do not support the stability circles.   Maybe there are other free tools that could be used to verify this part.   
Thank You very much for the links, Joe.
This seems to be a very helpful tool, I shall give it a try when I have some more spare time.
The Available gain graphs are also very interesting feature, thanks!
You are correct, I don't have all the necessary setup to perform the SW tests right now.
I ve got several SpDT SMA coax switches from Anritsu that I plan to adopt in tests.
Besides, I do have a low-cost VNA at hand that supports extracting full 2-port set of S-parameters from the DUT.
Thanks,
Alex
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1309 on: October 26, 2021, 02:06:05 pm »
Thank You very much for the links, Joe.
This seems to be a very helpful tool, I shall give it a try when I have some more spare time.
The Available gain graphs are also very interesting feature, thanks!
You are correct, I don't have all the necessary setup to perform the SW tests right now.
I ve got several SpDT SMA coax switches from Anritsu that I plan to adopt in tests.
Besides, I do have a low-cost VNA at hand that supports extracting full 2-port set of S-parameters from the DUT.
Thanks,
Alex

Assuming your VNA supports Touchstone, maybe you can use it for your amplifier designs.   I had long ago removed JAVA and had to install it just for this app.  If you are aware of any better Touchstone post processors that can do some of the things you want, just provide a link. 

Quote
In fact, most modern VNAs have this stability analysis option built-in.
I looked at Keysight and did not see where they had anything like stability circles included in their software.  If CopperMountainTech and Keysight don't support it, I am wondering which models do?   

The problem I see with using two discrete  DPDT coaxial switches is you are placing unterminated stubs on the transmission lines.   Maybe it won't matter for what you are doing. 

Which low cost VNA are you using that has support for 2-ports?   Depending on the specs, it may be worth porting the software to it.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1310 on: October 26, 2021, 06:49:36 pm »
While searching for tools to validate my math,  I ended up watching a very basic video showing all the details for the stability circles.   Attached is the output from my math which if you watch the video, seems to match up.   



Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1311 on: October 27, 2021, 03:21:11 am »
Time to start working on the documentation.    Attached showing the stability menu.  Poor amplifier.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1312 on: October 27, 2021, 03:42:26 pm »
After some thought, the plan is to add onto the 2-Port Plot tab.
What's might be interesting to see in the SW features is the ability to plot a family of load stability circles on one graph simultaneously in case of broadband stability analysis, for implemented frequency sweep, as it is shown in the last section of L. Besser paper
Thanks,
Alex
Plotting a family of circles is easily done in a text book, but I'm not sure how it would be accomplished in the real world.   These are data formatting questions that I had hoped you would clear up by showing how your tools work.    Considering there is a circle for each point collected.  Even the original NanoVNA will capture 101 data points, so 101 circles.   OWO mentions the V3 supporting 10,000 data points. 

Calculating 10,000 data sets shouldn't pose much of a problem but plotting them may be a bit much.   

One way to avoid the mess would be to concatenate all the circles into one array and plot that as a single graph.  Of course that would be a fairly large array but Labview can handle that much easier than trying to graph several discrete circles. 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1313 on: October 27, 2021, 04:13:42 pm »
Quote from: joeqsmith

Calculating 10,000 data sets shouldn't pose much of a problem but plotting them may be a bit much.   
[/quote

One way to avoid the mess would be to concatenate all the circles into one array and plot that as a single graph.  Of course that would be a fairly large array but Labview can handle that much easier than trying to graph several discrete circles.

That's very nice, would be great,
Thank You !
Concerning the stability graphs in the VNAs, as far as I know, Rohde Schwartz analyzers have them as an option (but only K, mu1 & mu2 plots).
I've believe that Keysigh have this option for VNA, too, as far as I have seen it's description in Joel,'s textbook.

Quote
Which low cost VNA are you using that has support for 2-ports?   Depending on the specs, it may be worth porting the software to it.   
I have Jan's open source VNA, it's a fairly new project,
 the USB protocol they had implemented is still a subject to minor changes as the SW is still under development.
As we had discussed previously, this work is still in progress, and it is not properly documented yet.
« Last Edit: October 28, 2021, 04:47:15 am by Alextsu »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1314 on: October 27, 2021, 05:43:46 pm »
Which low cost VNA are you using that has support for 2-ports?   Depending on the specs, it may be worth porting the software to it.   
[/quote]
I have Jan's open source VNA, it's a fairly new project,
 the USB protocol they had implemented is still a subject to minor changes as the SW is still under development.
As we had discussed previously, this work is still in progress, and it is not properly documented yet.
[/quote]


I tried downloading their latest software and loaded in that last Touchstone file.  I don't see how you plot the stability with it.  It seems very limited for such an expensive device.    Are you using a different program with it?

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1315 on: October 28, 2021, 04:43:26 am »
Quote from: joeqsmith
In fact, most modern VNAs have this stability analysis option built-in.[/quote
I looked at Keysight and did not see where they had anything like stability circles included in their software.  If CopperMountainTech and Keysight don't support it, I am wondering which models do?   

I have double checked Joel's textbook and it appears that formerly Agilent VNA's SW had a built-in equation editor, which made it possible to plot the stability factor plots on the screen.
The user just had to enter the necessary maths equation with S-parameters there.
But the book also states that more recent analyzers already have this plots for K, delta and mu factors available, together with the test=Pass or Fail criterion.
All other calculations could be done as post-processing in external SW, I assume something like Matlab, after the S-parameters export in Touchstone format.

Jan's VNA also has this Touchstone format S-parameters export feature and some kind of built-in equation editor, too.
So, in theory,  it's possible to do the job. But in practice it might be limited to different measurements errors.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1316 on: October 28, 2021, 11:49:40 am »
Quote from: joeqsmith
In fact, most modern VNAs have this stability analysis option built-in.[/quote
I looked at Keysight and did not see where they had anything like stability circles included in their software.  If CopperMountainTech and Keysight don't support it, I am wondering which models do?   

I have double checked Joel's textbook and it appears that formerly Agilent VNA's SW had a built-in equation editor, which made it possible to plot the stability factor plots on the screen.
The user just had to enter the necessary maths equation with S-parameters there.
But the book also states that more recent analyzers already have this plots for K, delta and mu factors available, together with the test=Pass or Fail criterion.
All other calculations could be done as post-processing in external SW, I assume something like Matlab, after the S-parameters export in Touchstone format.

Jan's VNA also has this Touchstone format S-parameters export feature and some kind of built-in equation editor, too.
So, in theory,  it's possible to do the job. But in practice it might be limited to different measurements errors.

I was thinking that
Quote
In fact, most modern VNAs have this stability analysis option built-in.
did not mean you would have to buy Matlab or use the built in equation editor to process the data.   Rather I am expecting a single button or menu option that plots the family of stability circles along with all the factors you are asking about.   I've spent a few hours putting the code together and would expect anything I show would be a pale compared with the what the larger companies like Copper Mountain Tech and Keysight offer.  Oddly enough, I am not finding these features.

What would be interesting is to use the internal equation editor to plot the family of stability circles you asked about, even with a small data set.  Some of my old equipment supports a way to write custom code that runs native to the instruments.  I've never had a use for it as the desktop PCs will normally have far more capability.   With Jan's VNA running headless, you're already running on the PC.    This is where changing to a new version of LabView could improve things. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1317 on: October 29, 2021, 02:39:11 am »
Quote
Concerning the stability graphs in the VNAs, as far as I know, Rohde Schwartz analyzers have them as an option (but only K, mu1 & mu2 plots).

I had a look at RS and also could not find anything showing stability circles. 

https://cdn.rohde-schwarz.com/pws/dl_downloads/dl_application/application_notes/1ez65/1EZ65.pdf

Searching on Google images, I couldn't locate a single screen shot of ANY vendor showing this feature.    I suspect that doing a family of them like I show would be too CPU intensive.  Or maybe they don't get a lot of requests for it from their customers.     Too bad Brian and Joel from Copper Mountain Tech and Keysight don't chime in.  They may be able to provide some much needed background on it.   


Shown using the typical stability circles.  I have not rolled it into my software yet.   

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1318 on: October 29, 2021, 08:49:30 am »
Quote
Concerning the stability graphs in the VNAs, as far as I know, Rohde Schwartz analyzers have them as an option (but only K, mu1 & mu2 plots).

I had a look at RS and also could not find anything showing stability circles. 

https://cdn.rohde-schwarz.com/pws/dl_downloads/dl_application/application_notes/1ez65/1EZ65.pdf

Searching on Google images, I couldn't locate a single screen shot of ANY vendor showing this feature.    I suspect that doing a family of them like I show would be too CPU intensive.  Or maybe they don't get a lot of requests for it from their customers.     Too bad Brian and Joel from Copper Mountain Tech and Keysight don't chime in.  They may be able to provide some much needed background on it.   


Shown using the typical stability circles.  I have not rolled it into my software yet.   

Yes, You're correct, the "stability circles" is a feature that is still unavailable in VNAs.
I just wanted to point out that "stability factors" plots are already available in most modern VNAs.
This caused some misunderstanding, I guess.
Sorry about that
« Last Edit: October 29, 2021, 04:25:22 pm by Alextsu »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1319 on: October 29, 2021, 12:07:35 pm »
Yes, You're correct, the stability circles is a feature that is still unavailable in VNAs.
It is partly explained by the fact that mu1 & mu2 are considered enough for checking DUT amp behaviour.
Also, Your should not expect much from the CopperMountain as far as at is just a spin-off from a Russian Planar company.

I assume you had a reason for wanting to see the stability circles plotted.  Were you asking just to see if I was able to plot them using LabView?  If so, hopefully I have answered that question for you. 

If I had the disposable cash, I would have ended up with a CopperMountain product.  Specifically, the one Brian used to measure that common mode coaxial transformer for us.

I watched this series from Keysight on stability.  Part 1 mentions some of other factors used. 
 

Offline UR5FFR

  • Contributor
  • Posts: 23
  • Country: ua
    • UR5FFR ham radio
Re: NanoVNA Custom Software
« Reply #1320 on: October 29, 2021, 06:35:07 pm »
Hi,

I want to present my development for impedance measurement and matching network design. Software working with S-A-A V2, NanoVNA V2 and NanoVNA-F V2. Its easy to use and freeware. Include user manual in PDF format.

A short video demonstrating the main features of the program.



You can download software here
« Last Edit: October 29, 2021, 06:57:40 pm by UR5FFR »
73 Andrey
 
The following users thanked this post: croma641, DC1MC

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1321 on: October 31, 2021, 02:09:36 am »
Demonstration of the stability circles after Alextsu's request.   
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1322 on: October 31, 2021, 06:06:51 pm »
Both programs for the original and V2+4, along with the manual have been uploaded to Github.   The older software has been removed.

Offline m3vuv

  • Super Contributor
  • ***
  • !
  • Posts: 1738
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1323 on: November 01, 2021, 09:39:45 am »
just wondered if there are any versions of the nano vna that cover 2.4ghz wifi?
 
The following users thanked this post: ON7CH



Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf