Author Topic: NanoVNA Custom Software  (Read 524737 times)

0 Members and 8 Guests are viewing this topic.

Offline m3vuv

  • Super Contributor
  • ***
  • !
  • Posts: 1738
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1325 on: November 01, 2021, 06:35:57 pm »
so is that a yes or no?,my nanovna is the one that had a 2.8 inch screen but i swapped the screen for a 3 inch screen from aliexpess,just wondered if firmware will make it work for 2.4 ghz,im sure it goes to 300mhz and 900 using harmonics.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1326 on: November 01, 2021, 07:17:27 pm »
so is that a yes or no?,my nanovna is the one that had a 2.8 inch screen but i swapped the screen for a 3 inch screen from aliexpess,just wondered if firmware will make it work for 2.4 ghz,im sure it goes to 300mhz and 900 using harmonics.

It depends what you are asking.  From your original question, "just wondered if there are any versions of the nano vna that cover 2.4ghz wifi?", there are at least two models of the NanoVNA that have an upper frequency beyond 2.4GHz.   So YES to question 1. I provided a link to them.    I suspect now what you really want to know is if firmware is available that will allow the original NanoVNA to work past 2.4GHz.   That, I don't know, but, if there was I can't see it being of any use.  The performance is poor once you move past 300MHz.   Still, if all you care about is the frequency, then maybe.

**
I recently posted some data for the original NanoVNA, H4, V2P and V2P4.   You can get some idea about the noise and dynamic range.  Both the H4 and my original NanoVNA have firmware that support up to 1.5GHz.   Doubling that, is certainly going to make matters much worse.   Maybe you only need 1dB of dynamic range.
https://nanorfe.com/forum/VNA-output-level.html   
« Last Edit: November 02, 2021, 05:02:11 pm by joeqsmith »
 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1327 on: November 02, 2021, 04:26:46 pm »
Hello, Joe,
Thanks for adding all the new features, looks great! Very nice!
Though I had not tried them yet, but I have a question:
May be it's possible to add an "S2P load" button to UI?
I was thinking of possibility to use the new SW features to work directly with imported .S2P Touchstone files,
is it possible?
Also, when I try to Save or Load any S1P files in Your app, they all are stored or read only with a comma "," in the decimal point format, while all other Touchstone use dot "." decimal point separator.
Is this by default or due to some regional LabView settings I have to tune?
Any suggestions about that?
Thank You!
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1328 on: November 02, 2021, 05:12:23 pm »
Hello, Joe,
Thanks for adding all the new features, looks great! Very nice!
Though I had not tried them yet, but I have a question:
May be it's possible to add an "S2P load" button to UI?
I was thinking of possibility to use the new SW features to work directly with imported .S2P Touchstone files,
is it possible?
Also, when I try to Save or Load any S1P files in Your app, they all are stored or read only with a comma "," in the decimal point format, while all other Touchstone use dot "." decimal point separator.
Is this by default or due to some regional LabView settings I have to tune?
Any suggestions about that?
Thank You!

I could read the S2P files as well and have thought about dropping S1P all together.   I also thought about writing a complete viewer.  For now, I still use AppCAD and METAS.  Both are free.  Both have their limitations.   Another option is to use the software that came with your VNA. 

Keep in mind, that the viewer that is built into my software is currently VERY limited.  I just don't have much of a need and would rather use a third party tool if at all possible.   

There could very well be a regional problem with one or both applications.   The V2+ uses binary and so talking with the device was never a problem.  The original NanoVNA used ASCII.  I added an autotest for the regional settings but it is only for the original NanoVNA.   I have not considered the Touchstone files but I would not be at all surprised that they are also effected by the regional settings.   There is a section in the manual on how to change these settings in the INI file.  You could try that and report back if it solves your problem.   If so, I may be able to correct that in software as well.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1329 on: November 02, 2021, 11:44:33 pm »
Looking at my software, the regional settings would effect the Touchstone files for all of my programs.  I can certainly change my software to display the comma like you're used to but write text files with the decimal.       

I would have thought that countries using the comma separator would want that across the board.  But it sounds like in some cases you want the comma and others you don't.  I don't see in the standard where they specifically mandate the separator.   

Before I make any changes, I would be interested in hearing from those of you living in these areas if you want the Touchstone to reflect your regional settings, always use the decimal, or keep it as is and use the INI file?   It's quick change for me, so no big deal but let's make sure that it's the right solution. 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1330 on: November 03, 2021, 01:42:53 pm »
Looking at my software, the regional settings would effect the Touchstone files for all of my programs.  I can certainly change my software to display the comma like you're used to but write text files with the decimal.       

I would have thought that countries using the comma separator would want that across the board.  But it sounds like in some cases you want the comma and others you don't.  I don't see in the standard where they specifically mandate the separator.   

Before I make any changes, I would be interested in hearing from those of you living in these areas if you want the Touchstone to reflect your regional settings, always use the decimal, or keep it as is and use the INI file?   It's quick change for me, so no big deal but let's make sure that it's the right solution.
Hello, Joe,
Thanks for comments on this issue!
For sure, to make all the S2P files export-import process straightforward,  the Touchstone files should always use a dot separator.
This is the only way to work with S2P files in other SW tools correctly.
In all other cases, I suppose, comma or dot don't really matters.

Thanks,
Alex
« Last Edit: November 03, 2021, 01:45:15 pm by Alextsu »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1331 on: November 04, 2021, 12:20:06 am »
I'm sure you are aware that I posted in the IOgroups as well.   Outside of you, zero feedback. 

I wonder how you deal with other software tools.   It is that the culture is so tied to the comma that you just can't get rid of it?   Now you're stuck with some sort of hybrid case?   Maybe similar to the USA and the metric system.   We just can't seem to pitch the old British units.  But I digress.

Let me give the whole Touchstone subject some thought.  The import was added for my own testing and is not generic.   This really needs to be created from scratch.  It also only stores to memory which again is not very useful. 

In the mean time, you should be able to change the INI file to handle the writes.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1332 on: November 04, 2021, 03:37:58 pm »
I rewrote the Touchstone import from scratch.   It supports (DB, MA, RI) (G, M, K and Hz) formats.  It should handle both S1P and S2P automatically.   It checks  for the frequency to increase and no tokens after any data is found.  Comments are allowed throughout the file.  The software expects at least one space (0x20) to be used as a delimiter.   Some files will used more than one space.  Others will end the line with a space.   The software handles these cases as well.   

I had discovered AppCAD actually has support for stability circles.  When I tried to feed it a TS file from the Youtube example,  I also learned that it requires at least two data points.  So, I replicated the dataset and increased the frequency.  (see attached TS file).   

While testing, I also found that my last software has a MAJOR bug with the stability circles.   When I went from my test code to the actual subroutine, I screwed up the math.   So, both of those versions are wrong!

The software now exports Touchstone files with the decimal point.   It also expects the decimal to be used on any files you import.   Attached shows the original test code, AppCAD, RF Assistant and my latest 2.06 software showing the attached Touchstone file.     

If you have Touchstone files you would like to try as test cases, go ahead and upload them and I can run them through.   

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1333 on: November 04, 2021, 06:12:24 pm »
I rewrote the Touchstone import from scratch.   It supports (DB, MA, RI) (G, M, K and Hz) formats.  It should handle both S1P and S2P automatically.   It checks  for the frequency to increase and no tokens after any data is found.  Comments are allowed throughout the file.  The software expects at least one space (0x20) to be used as a delimiter.   Some files will used more than one space.  Others will end the line with a space.   The software handles these cases as well.   

Thank You, that's great!
Do You mean that the space delimeter is expected for comments or for data?
As I understand, usually the TS files use TAB delimeter for data and space delimeter for comments.

...
The software now exports Touchstone files with the decimal point.   It also expects the decimal to be used on any files you import.   Attached shows the original test code, AppCAD, RF Assistant and my latest 2.06 software showing the attached Touchstone file.     

If you have Touchstone files you would like to try as test cases, go ahead and upload them and I can run them through.

Attached is a pair of .S2P files I have at hand, one of them (named "Ports 1,2 open"), had been taken from Jan's VNA ports isolation test (with both ports open, 0-6 GHz span).This comes with a screenshot.
You might also test SW with the example files from AppCAD's folder.


By the way, the problem I had previously with the regional settings, had been  solved by editing the .ini file.

One problem I had noticed while trying to load S2P files in Your SW (V2+4 vers.2.05) is that I could not get the "2-port plots" in the "Advanced" tab updated when I load a new S2P file. Pressing the "Stability" button in the Main tab seems to have no effect on this graphs.

AppCad is a nice app, but is a bit tricky to use, it often throws errors like "Imput must be a Numeric Value".








 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1334 on: November 04, 2021, 08:49:32 pm »
Do You mean that the space delimeter is expected for comments or for data?
As I understand, usually the TS files use TAB delimeter for data and space delimeter for comments.

From the 1.1 standard:

2.   Only ASCII characters, as defined in ANSI Standard X3.4-1986, may be used in a Touchstone file.  The use of characters with codes greater than hexadecimal 07E is not allowed.  Also, ASCII control characters (those numerically less than hexadecimal 20) are not allowed, except for tabs or in a line termination sequence (carriage-return or carriage-return/line-feed combination).
Note:  The use of Tab characters is strongly discouraged.


I will do my part to discourage the use of the Tab and not support it.  I also do not support the newer standards.

Attached is a pair of .S2P files I have at hand, one of them (named "Ports 1,2 open"), had been taken from Jan's VNA ports isolation test (with both ports open, 0-6 GHz span).This comes with a screenshot.
You might also test SW with the example files from AppCAD's folder.

I had ran the one from the RFAssistant with no problem.  The one you uploaded from Jan's VNA will also loads just fine.   Timely post as I had collected that same data for the two V2Plus VNAs I have.  The Jan VNA seems to add a filter of sorts after 3GHz to improve the dynamic range.  I would guess it is slower running sweeps above 3GHz compared with ones below it.   If you can turn this off, we could compare all three. 

I also show the data below 1.5GHz.  The real advantage would be getting all four S-parameters and much better dynamic range above 1.5GHz.  Still you give up a lot on the low end.   

By the way, the problem I had previously with the regional settings, had been  solved by editing the .ini file.

One problem I had noticed while trying to load S2P files in Your SW (V2+4 vers.2.05) is that I could not get the "2-port plots" in the "Advanced" tab updated when I load a new S2P file. Pressing the "Stability" button in the Main tab seems to have no effect on this graphs.

AppCad is a nice app, but is a bit tricky to use, it often throws errors like "Imput must be a Numeric Value".

You can not load S2P files with my software.  Well, you can try but it will ignore the data beyond S11.  It will also strip the first five lines no matter what.  It also only supports one mode (not sure which but I suspect dB).  Again, it is VERY ridged and was added for my own testing, not as a generic viewer for the general user.  That's why I never demo'ed it or document it.   Even if you had a file that met all the criteria,  it can only load it into memory.  That means you can't run any math on it.  You can only view the data.   It's virtually a useless feature for everyone but myself.   Of course, the next release may change that. 


Also, from the other feedback, I may add the ability to not overwrite the autoscale when in the rectangular modes.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1335 on: November 05, 2021, 01:03:49 am »
The new software is now available.

Auto regional support for Touchstone files
Touchstone file import
Able to manually turn off the vertical autoscale on the main graph for all rectangular plots
Fix a major bug in the stability circles

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1336 on: November 05, 2021, 08:56:01 am »
Thanks for NanoVNA channel isolation plots.
Considering Jan's VNA (LibreVNA), the dynamic range fades above 3 GHz probably due to HW or components RF leakage, or presence of higher-order EM modes. It's still unclear how to get rid of this effect, this  might need a partial PCB or HW redesign.
While it had been reported by some NanoVNA users previously, that RF (ferrite) absorbing sheets may help to improve the channel isolation, this seems to have insignificant effect in Jan's VNA case. I had tried some special RF absorbing materials, but couldn't see any improvements in DR.
« Last Edit: November 05, 2021, 10:32:22 am by Alextsu »
 
The following users thanked this post: croma641

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1337 on: November 05, 2021, 03:21:19 pm »
They may not implement the leakage coefficient.  I added support for it after purchasing the V2+.   Initial tests showed poor dynamic range.  OWO had chimed in and suggested adding it.   Normally you would not use this term as it causes more harm than good but with the V2+ we see a fairly decent improvement above 3GHz.  Looking at your entire set, you can see really see the contrast.  It looks like they filter the data differently above 3GHz. 

Too bad they didn't use the same protocol as one of the other VNAs.  They could have used some of the preexisting software to test with.   

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1338 on: November 05, 2021, 08:36:15 pm »
They may not implement the leakage coefficient.  I added support for it after purchasing the V2+.   Initial tests showed poor dynamic range.  OWO had chimed in and suggested adding it.   Normally you would not use this term as it causes more harm than good but with the V2+ we see a fairly decent improvement above 3GHz.  Looking at your entire set, you can see really see the contrast.  It looks like they filter the data differently above 3GHz. 
Interesting solution.
Do You mean some extra maths is used while performing calibration?

Too bad they didn't use the same protocol as one of the other VNAs.  They could have used some of the preexisting software to test with.
In general, Jan's VNA has a built-in SCPI server, and its SCPI communication protocol is described in details in the "programming guide".
Makes it possible to integrate with other programms
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1339 on: November 05, 2021, 09:29:44 pm »
Interesting solution.
Do You mean some extra maths is used while performing calibration?

Yes.   

http://emlab.uiuc.edu/ece451/appnotes/Rytting_NAModels.pdf


In general, Jan's VNA has a built-in SCPI server, and its SCPI communication protocol is described in details in the "programming guide".
Makes it possible to integrate with other programms

It's not been too much effort to interface with these custom one-off protocols using LabView.  I like the simple interface of the V2Plus and hope they just expand on that for the V3 (assuming that they ever produce it).   Some of my older TE uses SCPI over GPIB.       

I have not looked into any of the manuals for your VNA.  It's hard to believe that it would be as complicated as that vintage PNA I bought.  There's a lot going on in that system.   Still LabView makes easy work of it for the most part.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1340 on: November 06, 2021, 12:12:34 am »
Glancing through the manual for your VNA,  it appears that they have given you a way to hook into their software but not directly run the VNA.  Surely they wouldn't do that but that's what it seems like.   So you can basically automate the VNAs controls but you use their software to collect and display the data.  If this is what they have done, why?   

Maybe there is another manual beyond the SCPI Programming Guide that provides lower level details to directly interface with it. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1341 on: November 06, 2021, 12:32:40 am »
I had started to upload the new software untested but decided to spend some time checking the V2Plus release.   Both are now up on Github but I have not tried the software for the original NanoVNA.  The changes were minimal and it uses the same code base but you never know. 

To turn off the autoscale just right click on the scale you want to turn off, then select AutoScale Y.   You can then select the max or min value and overwrite them with what ever you want.   To enable the autoscale, just re-select the AutoScale Y.   For transmission, you can turn off both the gain and the phase independently.   When you change the function, the software will automatically revert to autoscale.   This is transparent for me but gives those of you who want it, a way to disable it.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1342 on: November 06, 2021, 07:58:57 pm »
A few bugs were found in both programs.  These have been corrected and TDR has been added to the post processing.

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1343 on: November 09, 2021, 05:39:03 am »
Glancing through the manual for your VNA,  it appears that they have given you a way to hook into their software but not directly run the VNA.  Surely they wouldn't do that but that's what it seems like.   So you can basically automate the VNAs controls but you use their software to collect and display the data.  If this is what they have done, why?   

Maybe there is another manual beyond the SCPI Programming Guide that provides lower level details to directly interface with it.
Yes, You are correct.
There are no other manuals available.
« Last Edit: November 13, 2021, 10:02:29 am by Alextsu »
 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1344 on: November 13, 2021, 10:33:32 am »
A few bugs were found in both programs.  These have been corrected and TDR has been added to the post processing.
While performing some simple tests with SW NanoVNA v2+4 rev.2.07, trying .s2p file import test, I see that a small bug with Stability Circles plots still remains.
The Stability Circles plots at Main tab differs from the same plots at Advanced-2 port - Stability tab for S11 plot.
I have tested calculation with RF Assistant app with provided FHX13X .s2p file.
While Stab. Circles plots at Main tab in Your app appear to be correct, the yellow circle at Advanced tab for S11 differs from the pink one at Main tab graph
« Last Edit: November 13, 2021, 10:38:01 am by Alextsu »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1345 on: November 13, 2021, 03:36:57 pm »
A few bugs were found in both programs.  These have been corrected and TDR has been added to the post processing.
While performing some simple tests with SW NanoVNA v2+4 rev.2.07, trying .s2p file import test, I see that a small bug with Stability Circles plots still remains.
The Stability Circles plots at Main tab differs from the same plots at Advanced-2 port - Stability tab for S11 plot.
I have tested calculation with RF Assistant app with provided FHX13X .s2p file.
While Stab. Circles plots at Main tab in Your app appear to be correct, the yellow circle at Advanced tab for S11 differs from the pink one at Main tab graph
Good to see you testing it.   I had validated the stability circles using that Touchstone file I supplied from that Youtube video I linked.   Of course that works.  The problem was I had forgotten to add the index to all of the parameters.  In the case of the YT file, there are only two entries and both are the same.  So the missing index caused no problems.

These are the changes planned for 2.08: 

2.08
Add distance units to the TDR graph
Add threshold selection to TDR graph using cursors
Throttle time between calculations
Add missing index for stability circle parameters
Add a plot refresh to stability selection
Force states of gain and phase selection to defaults when selecting stability

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1346 on: November 13, 2021, 03:43:46 pm »
FYI,  I had noticed that a new group has been added.   

https://groups.io/g/liteVNA

liteVNA - 6GHz vector network analyzer in the same size as NanoVNA.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1347 on: November 13, 2021, 04:55:04 pm »
Both programs have been updated and are now available. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1348 on: November 13, 2021, 09:50:58 pm »
Using the V2 Plus 4 to sweep the home made Vivaldi antenna.


Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1349 on: November 14, 2021, 01:31:38 am »
Sweeping the same antenna with 4 data points vs 720.   With it using the CW mode, we only need one data point.  So sweeping 720 angles only requires a few minutes.   


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf