Author Topic: NanoVNA Custom Software  (Read 504847 times)

0 Members and 6 Guests are viewing this topic.

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1900 on: March 14, 2022, 06:26:15 pm »
Re: My goals
I'm interested in the science. I'm studying the theories and applications of EE. Waves were always central to my engineering and science.  Learning about, measuring and controlling EM wave behavior fascinates me. As a hands-on person I've always considered that being able to measure something is a core endeavor.
I'm having fun with it.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1901 on: March 15, 2022, 03:49:08 pm »
The HP8711A seems to have had an upper end of 1.3G.  This makes sense that the data you posted for your Mini-Circuits attenuator was so poor at 6GHz.  I imagine the extra stubs are a problem.   I had no luck finding a clear photo of what it looks like inside. 

Quote
I'm studying the theories and applications of EE.
I've been in that same boat for many decades and still know very little about electronics.   There's just not enough time.  :-DD 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1902 on: March 15, 2022, 04:13:23 pm »
Re: Learning EE et. al.
The amount to learn just keeps growing too. Plasmonics... Where will this field lead to?
The great thing for me is the availability of learning resources and hands- on experiments I can do while learning.
Having so many experts,  or at least very competent people, on YouTube,  etc sharing and teaching is a huge boost for me.
I'm going to recreate your power circuit for relay using Microcap and then modify for my relay.  It'll be a big learning process all the way.
Do you use RG58 with stranded core for your instrumental connections?
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1903 on: March 15, 2022, 07:05:17 pm »

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1904 on: March 15, 2022, 09:35:00 pm »
Re: Meaning of vat-15 scan?
I'm thinking the v2plus4 did good job of measuring the gain.  Shows loss of functionality at +5GHz because attenuator data sheet says attenuation should be going down as frequency increases.
Unknown is how dependable the units are to follow spec's. Have to verify attenuator on another VNA.
How's that for reading results?

Looking at cable specs:  I see the double- shielded cables have higher operating frequencies.

Thanks.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1905 on: March 16, 2022, 12:24:21 am »
I wouldn't expect to see that much ripple, even when using the ideal models. 

Yes, the cable I use will normally outperform RG58.   


Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1906 on: March 16, 2022, 12:55:57 pm »
Re: ripple in attenuation level
Would the ripple decrease if measurement taken over narrower frequency range?
Is there good rule for samples/Mhz where not expecting filter or resonant effects?
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1907 on: March 16, 2022, 05:52:38 pm »
That's a good question for you and realfran to sort out. 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1908 on: March 17, 2022, 03:15:00 pm »
I set up v2plus4 as shown in screen shot. Calibrated it. I'm getting nothing when I sweep. Seems locked up.
Restarted all. Ran without calibration.  Normalized with a thru. Connected 2W 20db attenuator from aliexp. Obtained screen shot.
v2plus4 clearly breaks down about 4.5GHz. Results lower than that look really good.

This locking up after calibration always occurs.  My nanovna-h does not have that problem. Is there something to check or fix for this issue? 
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1909 on: March 17, 2022, 03:51:56 pm »
Re: lockup

You would need to provide more details beyond suggesting it locked up.  I suggest you look at the specs for your V2Plus4:
https://nanorfe.com/nanovna-v2.html

Someone else once told me how my software was locking up after calibration.  They too provided no details.  In the end, after they provided screen shots, I could see they had entered their own coefficients for the standards.   They had zero'ed out C0 which then caused a divide by zero and the software was showing NAN (not a number).   I talked about that specific problem in the last video I made.   

I don't typically limit the software to try and protect the user from themselves.   If you want to program your V2+4 for 20GHz, the software will gladly attempt it.   As I said during that last video, I now add a small offset to C0 to avoid diving by zero.   I also talked about someone who was attempting to set the number of data points to something very small  (as this apparently improves the distance resolution in TDR mode), which would put a very high demand on the CPU to the point where the OS may become non-responsive.   The new software attempts to throttle the system.  So there are a few things that I added in an attempt to prevent users from shooting themselves in the foot.  We also now handle the regional settings for much the same reason. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1910 on: March 17, 2022, 04:00:09 pm »
Maybe this will help:

https://nanorfe.com/forum/Preview-of-my-latest-software-updates.html

scroll down to:
Guido ON7CH 2021/11/19 13:57


Quote
Guido,

If you want to try and solve it, as I have wrote many times, you need to provide enough detail for me to replicate the problem.  I don't have enough time to guess at what you are doing.   Post a screen shot of the Calibration terms you have entered and AFTER you calibrate, post a picture of the coefficients.  Are you saving the settings, if so, upload the defaults file you have created.    I wonder what you are actually seeing when you suggest CH0_Z freezes.   Again, a screen shot would have helped.

I have not actually used more than the first entry in the standards with the V2Plus4 but I have used more than 10 with the other VNAs and they pull from the same code base.  CH0_Z should never freeze and there is nothing magic about the tenth entry.  Maybe post a photo of the data supplied with your calibration standards.   I think with all of this information, we should see the problem rather quickly.

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1911 on: March 17, 2022, 04:13:32 pm »
I have not adjusted any values you mentioned prior to or after calibration.  I'll study on this, see if I can find pattern of failure or success. 
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1912 on: March 17, 2022, 04:25:00 pm »
That's one clue.   I have not tried to run the V2Plus4 outside of it's operating range like you are and I am not sure how my firmware responds compared with yours.  You could provide screen shots like the other person did.  That would certainly help me understand what is happening.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1913 on: March 17, 2022, 04:35:50 pm »
This is not something I would normally do but again, the software will certainly allow you to. Don't expect it to somehow magically increase the upper range of your equipment. 
« Last Edit: March 17, 2022, 04:41:33 pm by joeqsmith »
 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1914 on: March 17, 2022, 05:08:07 pm »
Re: vat-15+ results and documenting programs
I now divine you ran that test with the litevna rather than v2plus4. That is why you ran it to 6.4Ghz. Yes,  I know that is outside the v2plus4 range. My assumption based on program version you ran,  would have thought you'd run litevna on the new solver64 software. Did not understand hardware ID at top of page.
I'm reading suggested posts.  Realizing the depth and breadth of responses you've made.  For me,  repeating myself and continually referring back to past answers would be tiresome and frustrating.  Would compiling and sorting question/answers into a searchable FAQ style page create a user reference akin to a manual? I understand you're not writing another manual. Your postings have created an unapproachable(big) archive of advice and details for us newbies.
Thanks for your help.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1915 on: March 17, 2022, 05:34:50 pm »
Yes, realfran had ran their VAT15 on their LiteVNA.  I assume they used their transfer relay to collect that data.  I suspect they ran it at 6.4GHz to show how well it worked but they show a lot of ripple.   There was a reason I suggested you work with them to answer your question about the ripple. 

Because the newer LiteVNA is somewhat backwards compatible with the V2Plus4, the software I wrote for the V2Plus4 does indeed support it to some extent.   

Answering questions, especially repeated ones can also be tiresome and frustrating.   You certainly could create a FAQ if you want to just like nctnico could also write an installation manual.   Don't expect me to create any new documentation.   People will not read it.   In the future I will most likely stop attempting to answer the more basic questions. 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1916 on: March 17, 2022, 05:48:30 pm »
Re: answering questions
"In the future I will most likely stop attempting to answer the more basic questions."

I expect anyone would grow tired of repeating themselves.  Regrettable you don't want to organize the help you've already provided. I don't have to understanding necessary to transform your conversations into a categorized FAQ.
 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1917 on: March 17, 2022, 05:50:27 pm »
Re: v2plus4 locking up
Attempted calibration after first reading of postings with Guido. Same behavior. Program not displaying same errors as his.  Don't know where to go from here. Attaching screen shots.
PS Reset all. Attempted calibration between 10M and 300M with 401 pts. Same results.  Calibration terms identical.
 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1918 on: March 17, 2022, 05:51:37 pm »
Another pic
 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1919 on: March 17, 2022, 05:52:55 pm »
One more.  Attaching all three to same post was not working.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1920 on: March 17, 2022, 06:10:45 pm »
Re:  Regrettable you don't want to organize the help you've already provided.
People will not read it which is indeed regrettable.

Notice how every picture you show the sweep is turned off.   Surely you don't expect it to sweep when you are telling it not to.  We can see in the last screen shot that the VNA is not sending any data which I would expect when the sweeps are turned off.   

Lets assume this is not the problem.   For me to look into it, you need write a detailed procedure that I can use to replicate the problem.  Document every step from the time you turn on the VNA.   If you can do this, there is a good chance that if there is a problem, I could fix it or at least tell you where the problem is.   Consider that I used the V2Plus4 a fair amount with this software and had no problems like you describe.
***
Make sure you include the firmware information as well.  Every detail is important. 
« Last Edit: March 17, 2022, 09:28:42 pm by joeqsmith »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1921 on: March 18, 2022, 01:29:50 pm »
Looking at the code, the only thing that make sense is not enabling the sweep.   You could run through the calibration process with sweep turned off.  The software will not care and happy do it.   Of course, it will be very fast as its not collecting any data.  The coefficients will not be created like you show as there was no data collected to create them.  The cal LED will be active as it made it through the calibration.   

However, you wrote:
Quote
I'm getting nothing when I sweep. Seems locked up.

I suspect you actually do press the sweep after you have ran through a cal without the sweep enabled.  The software being cal'ed is of course calculating the display values based on these nulled coefficients.   It's going to display a lot of nothing just like you asked.  You then turn off the calibration and like magic, it starts displaying data because it no longer uses the nulled coefficients. 
 
Quote
12.5   Displaying Data

The software will default to a center frequency of 10MHz with a 2MHz span and 201 data points (Frequency spectrum shown in Figure 11).  The V2+ was programmed with these defaults when the connection was made.   The V2+ is actually sweeping at this time. Select the Sweep button and the software will begin collecting data from the V2+. 

Maybe there is actually a problem but you have not provided any details on how to replicate it.   I suspect like many, it's easier for you to post on the forums than to use that time to try and understand what is going on.  Most of the basics were covered during the videos and the manual.   

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1922 on: March 18, 2022, 03:56:37 pm »
I'll retry and document procedure today.
 

Offline jspencerg

  • Regular Contributor
  • *
  • Posts: 72
  • Country: us
Re: NanoVNA Custom Software
« Reply #1923 on: March 18, 2022, 05:10:14 pm »
Re: "freezing up"
Realized as soon as I read your comments: I was not enabling sweep BEFORE calibrating. Works fine. Duh. Newbie mistake.
Calibrated 1001 points from 1M to 4.5G. Connected said same 20db attenuator.  Lots of jitter at higher frequencies,  but looks as though average would be fine till around 3.25G. Shown is results using normalization. Not appreciable difference without normalization.
Thanks for your help!
I've been salvaging components. Interesting in characterizing Inductors and common mode transformers. Lots of approaches from you and others.  Going to build holder(s) to test.  Fun stuff!
Parts for transfer relay arriving within week.  Need to study up on circuit build to power and connection details for usb. I'm so ignorant.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 12034
  • Country: us
Re: NanoVNA Custom Software
« Reply #1924 on: March 18, 2022, 06:39:31 pm »
It looks like you may have the leakage term disabled.   OWO mentioned the problem with the V2Plus4 when I first received mine.  I would just save that waveform to memory then enable the leakage and see how much it changes....

You seem to failed to read my post so I will repeat myself, 
Quote
I suggest you look at the specs for your V2Plus4:  https://nanorfe.com/nanovna-v2.html

And again, READ the attached. 

Surely you understand that 4.5GHz is > 4.4GHz??

***
It also appears that you calibrate the system and then use the normalize after the cal. 
« Last Edit: March 18, 2022, 07:47:00 pm by joeqsmith »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf