jankae / LibreVNA

100kHz to 6GHz 2 port USB based VNA
GNU General Public License v3.0
1.05k stars 201 forks source link

Poor lines #201

Closed Chorbu closed 1 year ago

Chorbu commented 1 year ago

LibreVNA Version

LibreVNA Version (64 bit): 1.5.0-alpha.2-54de9fd6b OS: Windows 10 Version 2009 CPU Arch: x86_64

Steps to reproduce

Since a few months i have strange traces with a lot of non linearity traces. Calibration is OK,. Il tryed to change USB cable, and try it on another PC : Same thing happened My hamradios are off (VHF and UHF) , no spurious emissions near the VNA. I tried to change IF1 and IF2 but without result, Actual values are

ADC

I also put a good power supply by connect a DC power supply >2A (same result)

I hope this is not due to a degradation of components inside VNA.

Capture d’écran 2023-03-19 201051

Expected behavior

What do you think about that ?

Could you give me original values of IF1 and IF2 ?

Extra information & Setup and Calibration files

no extra information

jankae commented 1 year ago

Hm, looks strange. Your IF values are at the default. Can you please try older firmware/GUI versions to determine whether this is a hardware or software problem? You can also enable "capture raw receiver values" in the preferences (either under Debug or LibreVNAUSBDriver, depending on your GUI version). This gives you the option to create traces from just the port or reference receiver instead of Sxy. That might get us additional insight about the source of these spikes/noise.

Chorbu commented 1 year ago

I 've just try this software and firmware (before is not possible) Last

Same issue....

jankae commented 1 year ago

Okay, I think that rules out the possibility of a new bug, I think other people would have noticed and notified me by now if that was the case.

Please look into the raw receiver values. Another thing you could try it starting the manual control dialog, enabling all PLLs and the amplifier and take a screenshot of that. On its own this is probably not that helpful but if I compare it to my LibreVNAs we might see that some values are off/different.

Chorbu commented 1 year ago

Here is the screenshot of Manual control dialog PLL

I activate Capture RAW receiver but i don't know where the values are saved...

Chorbu commented 1 year ago

i forgot to activate Amplifier...

Chorbu commented 1 year ago

But same issue

jankae commented 1 year ago

I activate Capture RAW receiver but i don't know where the values are saved...

You can change a trace to use the raw receiver value here: image All parameters except for RawPort1Stage1Ref and RawPort2Stage0Ref would be interesting to me.

But same issue

Can you please post a screenshot of the manual control dialog with the amplifier enabled? The ADC values should get much larger.

Chorbu commented 1 year ago

OK thank you

PLL

jankae commented 1 year ago

I assume you still have something connected to the ports? Otherwise the port 2 ADC values are much too high. But otherwise that looks good. This is from my device: image

Chorbu commented 1 year ago

Here all the screens for RAW 1 2 3 4 5 6

Chorbu commented 1 year ago

I i have a band stop filter 144MHz to 148MHz connected to my VNA

Chorbu commented 1 year ago

So I'm going to stop it for tonight, tomorrow work and up at 6am.

Thank you in advance Jan, good night to you too. Patrick

Chorbu commented 1 year ago

Oh i ve just see you've already add APPLY button for my previous request !!!! Thank you for your extreme speed !!!!

Good night Patrick F5SUE

jankae commented 1 year ago

You raw receiver data doesn't reveal any obvious issues (maybe a bit too much noise on the reference receiver data, but your problematic signals are coming from the port receivers). Just to make sure that it isn't from the DUT: what happens if you change the setup? (e.g. just measuring a direct through).

You can also try to reduce your IF bandwidth. Some narrow band filters have quite the long settling time and might not have fully settled in the time the VNA takes to measure a point for higher IF bandwidths. That could easily result in the measurement data you are getting.

Chorbu commented 1 year ago

With 500Hz IF BW or more is the same issue. Tomorow evening i will try again my other filters, splitter, coupler etc...

Chorbu commented 1 year ago

THRU connected (I SMA) after calibration

S12 is Magnitude THRU

jankae commented 1 year ago

Yeah, that is too much noise on the reference receiver. Same settings on my VNA: image I am unsure why you are getting that. Let's both sleep on it, maybe there are new ideas tomorrow.

Chorbu commented 1 year ago

Yes i saw that !!! Ther is a problem with my receive port !

Chorbu commented 1 year ago

Thank you Jan, thanks for your help. Have a good night Patrick

Chorbu commented 1 year ago

Hello Jan,

It seems to be OK now. Not noise on receive port

Calibration SOLT 1G-3G Calibration SOLT 120L-170M

I don't understand why yesterday i had some... I still have spikes on my Stop band filter. I will try with others.

Thank you Patrick

Chorbu commented 1 year ago

Still have spikes with other filter, other frequency and IF BW.

Spikes

jankae commented 1 year ago

I think the areas with the noise on the filter are a bit too symmetric to be coming from the VNA. I still suspect some settling time issue. Have you tried with some really low IF bandwidths? Something like 10 Hz. Also, can you link the data sheet to your DUT?

Chorbu commented 1 year ago

Hello Jan,

The BandPass filter is REACTEL Fcenter 2150 MHz réf SN86-1 (surely from an old SNA i supposed).

Here are the test comparaison with an ARINST VNA (without calibration made). You can see behind the stop band filter for 2m fréquency

IMG_0861 IMG_0862

Bests Regards Patrick

Chorbu commented 1 year ago

Jan, Here 2150 Bp Filter with the LibreVNA spectrum analiser with tracking

Spectrum analyser

And Here the 2m Stop band filter with my old HP8568B analyser with HP8444A tracking generator

IMG_0864

jankae commented 1 year ago

Okay, did you check it with 10 Hz IF bandwidth as well? Just to rule out the settling time issue I mentioned.

Chorbu commented 1 year ago

Hi Jan,

I've just made the test with 10 Hz IF BW and it seems good with the 2150 MHz bandPass filter.

With 10 Hz IF BW bis

I will try with the 2m stop band filter.

Chorbu commented 1 year ago

With 2m stop band filter is OK too :

Stop band filter With 10 Hz IF BW

So i think i made errors in the maner of measuring this kind of filters.... Sorry for that !

Best regards Patrick

Chorbu commented 1 year ago

Same with 40 Hz IF BW

With 40 Hz IF BW

Chorbu commented 1 year ago

So it works well under30 Hz IF BW, so i think you can close this PR.

Many thanks, have a good evening. Patrick

jankae commented 1 year ago

Okay, thanks for all the additional measurements. Some background information on the "problem", because you might notice that other VNAs can work at higher IF bandwidths: what matters is the overall time after which the stimulus signal is stable. If there is a sufficient delay before sampling the ADCs, you can also take measurements at much higher IF bandwidths. Some VNAs also have a special mode to introduce additional delay there. The LibreVNA currently has no option for any delay (apart from the fixed delay due to the locking of the PLLs) and it is also optimized for fast sweep speed.

Selecting a lower IF bandwidth has a similar effect because more ADC samples are needed (which takes more time). As long as most of the samples are taken when the DUT has fully settled, you will get valid results. Otherwise you could end up with very noisy data - sometimes only in some frequency bands.

I'll go ahead and close this now.