Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Early app for the NanoVNA
Hi Andy,
toggle quoted message
Show quoted text
did you get the app running? You should feel free to contact me directly if you want to make some further tries. I would like to figure out running it on as many platforms as possible. -- Rune / 5Q5R On Thu, 5 Sep 2019 at 16:24, Andy G0FTD 3rd Earl of Whitstable MBE BBC ITV etc etc etc etc etc via Groups.Io <punkbiscuit@...> wrote: Just for info, I used the command to list modules, still doesn't show them. |
Jeff, thank you for your suggestions.
toggle quoted message
Show quoted text
I know that S21 measurements don't particularly make sense on a Smith chart, but I think the display form is still somewhat useful. Would it be more suitable to use a polar chart? I'm not entirely sure about the unwrapping - particularly not how to calculate it ;-) It seems doing so relies strongly on knowing the results of earlier parts of the data. A "notes" field would probably be useful, particularly if saved to any exported files. Exporting files was, after all, the original purpose of the app :D -- Rune / 5Q5R On Fri, 6 Sep 2019 at 01:25, Jeff Anderson <jca1955@...> wrote:
Hi Rune, |
Hi Rune,
Interesting question regarding other ways of displaying S21. I only plot it as magnitude and phase in Cartesian coordinates (y axis in dB, x axis as frequency), and that is the only way I've seen it displayed by others. But perhaps some might find it useful displayed as a polar plot? Doesn't hurt to add the option -- I just would not use the Smith Chart overlay if doing a plot of S21. (Regarding S21 on a Smith Chart, I'll quote Keysight: "S21 (transmission) plotted on a Smith chart is meaningless and not defined in any way. The Smith chart is used to plot S11 (reflection) and extract the impedance from that S11." -- ). Now, regarding unwrapping of phase -- I took a look at the Matlab code for the s2p file viewer I use (). The Matlab code is surprisingly simple: set(handles.p21phase,'Xdata',Fvec*1e-6 ,'Ydata', (180/pi)*unwrap(atan2( imag(s(2,1,:)), real(s(2,1,:))))); In other words, Dick Benson (the author) just uses a Matlab 'unwrap' function. From a quick Google search, I think numpy contains the same sort of function: If it really is that simple, you might give it a try (I'm including my s2p file and a screen capture of the results if you'd like to check out your code with it). But if it proves more hassle than the effort is worth, I wouldn't worry about it. It's a nice thing to have, but I believe S21 gain is what most users pay attention to when plotting S21. Regarding the Notes field, Dick's Matlab S2P viewer I just mentioned allows you to add notes -- see right-hand side of the screen capture -- there are two text boxes. You can enter your own notes in the top box, and the bottom box displays the setup of the HP 8753 which generated the data. I find this feature VERY useful. (I don't know if setup data exists for the NanoVNA, so you could probably ignore the lower box. But the upper box (i.e. notes) is very nice to have). Dick's S2P viewer program actually appends both sets of text (notes and setup) to the end of an S2P file (or, in the case of his S1P viewer, to the end of an S1P file). So, opening up an S2P file in his viewer will automatically update the Notes and Setup text boxes with the appropriate text. If you take a look at the attached S2P file you'll see both the notes and the setup data appended as comments to the end of the S2P data. I don't know how hard it would be to do the same thing in Python. The Matlab code might give a clue (if you can get past the syntax -- let me know if you'd like me to shoot you a copy of the .m file). But again, if it looks too difficult I wouldn't worry about it. (By the way -- Dick's S2P viewer displays S21 only one way -- as gain and phase (combined in a single plot). S11 can be plotted either as a Smith Chart or Return Loss, selected with the pull-down menu over the S11 plot). Looking forward to your next release! Best regards, - Jeff, k6jca 190906_8753C_HFPA_LPF_3M5-4MHz,2_12_MHz.s2p
190906_8753C_HFPA_LPF_3M5-4MHz,2_12_MHz.s2p
![]()
190906_LPF_s2p.png
|
Dr. David Kirkby from Kirkby Microwave Ltd
On Fri, 6 Sep 2019 at 13:01, Jeff Anderson <jca1955@...> wrote:
I would agree
But proprietary I have some code written in Mathematica which, if memory serves me correctly, doesn¡¯t rely on anything very specific to Mathematica. I will post if anyone wants it I intend sorting out improving the mechanical stability issues before I se the init. I will do it in such a way that it would take minimal modifications to work with a model with a bigger screen. Dave Dr. David Kirkby, Kirkby Microwave Ltd, drkirkby@... Telephone 01621-680100./ +44 1621 680100 Registered in England & Wales. Company number 08914892. Registered office: Stokes Hall Lodge, Burnham Rd, Althorne, Chelmsford, Essex, CM3 6DT, United Kingdom |
Hi Rune --
I'm trying to help a follow running Windows install nanovna-saver.v0.0.6.zip. (I use Ubuntu linux) I unzip all the files into a directory, open a command prompt in that directory, make all the exe's and dll's executable, and run nanovna-saver.exe. I get: Traceback (most recent call last): File "site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 11, in <module> File "c:\users\au184274\appdata\local\programs\python\python37\lib\site-packag es\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module File "site-packages\pkg_resources\__init__.py", line 35, in <module> File "c:\users\au184274\appdata\local\programs\python\python37\lib\site-packag es\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module File "plistlib.py", line 65, in <module> File "c:\users\au184274\appdata\local\programs\python\python37\lib\site-packag es\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module File "xml\parsers\expat.py", line 4, in <module> ImportError: DLL load failed: Access is denied. [2188] Failed to execute script pyi_rth_pkgres I'm not an experienced python programmer, but it looks to me like this exe is looking for python in \users\au184274\appdata\local\programs\python which will never happen! So, for grins I installed python from python.org in \python\python3.7 -- It didn't help. So, next I copied the whole directory from github and used that python.org installed python -- and that works, but of course it has nothing to do with the stuff in the zip file. It would be nice if the zip file stuff worked so that users would not have to install python, get your stuff from github and configure python with the imports needed. Is there some option to get your zip file stuff to look for python within the directory where the zip file is installed on Windows????? 73 -- Harry, W5PNY |
Hi Harry,
toggle quoted message
Show quoted text
I'm assuming your comment that you run Ubuntu didn't refer to where you were trying to run the file :-) I've just downloaded the release to one of my other Windows PCs (where my home directory is completely different), and run it - with no issues. This being on a 64 bit Windows 7. Could you tell me which version of Windows, and whether it was 32 or 64 bits, you were trying to run it on? I fully agree on wanting it to be as easy to install as possible! However I don't have the experience needed in "python installer making" to be able to say what went right or wrong. Yet. :-) Thanks for trying to help your friend though! -- Rune / 5Q5R On Fri, 6 Sep 2019 at 15:40, Harry McGavran Jr <w5pny@...> wrote:
Hi Rune -- |
Hi Rune --
No, I wasn't trying this on Ubuntu -- his machine is Windows 7, 64bit. That path can't possibly exist on just about any other user's Windows machine. So I don't know how it could work without being able to pass an option to python telling python where the python stuff is. Python on Windows seems to install in a user directory rather than a system wide directory by default. I'm assuming you are user "au184274" on your machines so it work on any of your machines where python is installed in the user directory structure. I'm guessing that path shouldn't be hard coded in... I was hoping I just needed to supply that exe with a commandline option with the directory path in it or some such. 73 -- Harry, W5PNY |
Hi Harry,
toggle quoted message
Show quoted text
since the build does work on a number of machines, including on this Win7 64 bit machine I'm typing this on, which doesn't have that directory, I don't think that path in particular is the problem. The "access is denied" seems to point to a file not being allowed to be loaded or written, rather than a file that didn't exist. It's certainly not something I can debug at this distance :-) ps. I'm currently working on getting 32 bit versions built. -- Rune / 5Q5R On Fri, 6 Sep 2019 at 17:06, Harry McGavran Jr <w5pny@...> wrote:
Hi Rune -- |
Hi Rune --
It's not really clear what dll "Access is denied" applies to. The file expat.py referred to just above that error does NOT exist and in of your zip files or anywhere else on that machine. That's why I installed the python.org stuff on a guess that it was trying to run python from somewhere else. I'd certainly like to find out why it works for you. I just tried it under my Windows 7, 64 bit under vmware on my Ubuntu system and I get exactly the same problem. 73 -- Harry, W5PNY |
With the help of Ohan, there's now a 32bit standalone .exe available as
toggle quoted message
Show quoted text
part of release 0.0.6 on Github. If you were having problems before, do give that a go, and feel free to report any problems here, on GitHub, or direct to me. :-) -- Rune / 5Q5R On Fri, 6 Sep 2019 at 18:26, Harry McGavran Jr <w5pny@...> wrote:
Hi Rune -- |
With the help of Ohan, there's now a 32bit standalone .exe available as
part of release 0.0.6 on Github. If you were having problems before, do give that a go, and feel free to report any problems here, on GitHub, or direct to me. :-) Rune / 5Q5R ================================== Brilliant, to both! David GM8ARV -- SatSignal Software - Quality software for you Web: Email: david-taylor@... Twitter: @gm8arv |
Good Morning Rune,
toggle quoted message
Show quoted text
I¡¯ve been playing with 0.0.6 and I¡¯ve stumbled upon a couple of things. First, regarding the ¡°Display settings¡± dialogue box. I invoked it, used it and it worked just fine. Then I accidentally clicked elsewhere on the main screen area and the dialogue box disappeared. Subsequent clicks on the ¡°Display setup ¡¡± button did NOT bring the dialogue box back to the screen. It wasn¡¯t until I was closing the program that I found the dialogue box hiding behind the main screen. It¡¯s a minor, but annoying, problem. Also, the terminology on the ¡°Close serial/Open serial¡± button might need to be looked at. The first time I used the program I had no trouble understanding that ¡°open serial¡± meant ¡°Open a serial connection channel to the NanoVNA¡± and ¡°close serial¡± meant ¡°Close a serial connection channel to the NanoVNA¡±. However, last night (and perhaps it was because it was late and I was tired) I looked at that switch and thought that ¡°open serial¡± meant that I wanted to ¡°Open the connection to the NanoVNA¡±, Open as in disconnect, cut the wire, pull the plug. And ¡°close serial¡± could just as easily mean ¡°close the switch¡± or make the connection. For a couple of minutes I got really confused. Perhaps CONNECT and DISCONNECT as used in NanoVNASharp might be a better choice. Just one man¡¯s humble opinion. I have been experimenting with the TDR function using the Python source code. I have been able to add additional entries to the dropdown meu structure and get them to function properly. It¡¯s trivial to be sure, but for someone who has never programmed in Python before it¡¯s extremely rewarding. I don¡¯t know which approach is better: naming the dielectric or naming the coax. If you don¡¯t know what the dielectric is in the coax in question then you could be in for trouble. On the other hand, you can ALMOST always look at the cable and retrieve an RG number or some other manufacturer¡¯s designation. What are your thoughts on the subject? I would be happy to send you the source code for that section of the program. It would at least save you all the typing. Have a great weekend, Larry, AE5CZ On Sep 6, 2019, at 11:17 AM, Rune Broberg <mihtjel@...> wrote: |
Hi Larry,
toggle quoted message
Show quoted text
thanks for trying out the software! I've fixed the "hidden window" problem in the master source: Now it pops up the window if you click the button again. I too found it annoying. ;-) I hadn't considered the terminology of the open/close serial button, but you make a very good point. Connect / Disconnect sound like better terms. I'll put pondering this on the todo list. When setting up the TDR function, my main resource for velocity factors was my old Tektronix 1503C TDR - and the manual for that had the dielectric types and nothing else. So I put those in! Someone then offered me some specific cable types, and I added those underneath. I'd love to have more available, so please do forward them: mihtjel@... is my email address. :-) Have a very nice weekend! I'm going to be doing some Russian RTTY contesting, and maybe a little VHF DXing for field day. :) -- Rune / 5Q5R On Fri, 6 Sep 2019 at 19:09, Larry Goga <lgoga@...> wrote:
Good Morning Rune, |
Hello all, I have been on holiday and not able to keep up with all the posts. It seems a number of people have written new codes like Rune and others. May I propose that these developments be not just made available but adequately documented. In particular the equations used.Readers of my recent two part articles in QEX on Pi Networks will know that as years go by, software systems change, mathematical formulas are buried in executable codes? and their approximations and theory become lost to posterity. Anyone trying to trace errors or improve both theory and algorithms face an impossible job.? ?A short appendix page just summarising formulas that anyone can verify on a spreadsheet would make life a lot easier.Keep up the good work,Tuck m0tccSent from my Samsung Galaxy smartphone.
toggle quoted message
Show quoted text
-------- Original message --------From: "K5MWR via Groups.Io" <K5MWR_VNA@...> Date: 07/09/2019 02:10 (GMT+01:00) To: [email protected] Subject: Re: [nanovna-users] Early app for the NanoVNA You might find VF information at these sites, the second reference provides methodology of calculation of VF Dave K5MWR
|
Please ignore the remarks on how graphing tools should be used.
toggle quoted message
Show quoted text
Give everybody everything in all modes.? They will appreciate standard practice more quickly than "ramming it down their throats." HP produced some of the finest papers on RF engineering which are still issued by Keysight.? During that time it is reasonable that HP asked everyone to adhere to standard practices. If the quotation was made in that context, then it is reasonable.? (Yeah, I worked at HP during that time.) If not, it represents part of the pedantic stereotype suffered by engineers. (If Phil Smith said, "Do it this way." then by golly ...) As a mathematician I know that I want every graphical representation of data available.? Sometimes an insight jumps out in some graphical mode not obvious in another.? It does not matter what standard practice is. The Smith Chart is the result of applying a Mo"bius transformation to the right half plane.? These transformations take circles and lines to circles and lines.? Anything one can do on the Smith Chart can also be done on the plane.? The Smith Chart has the advantage that graphing a curve through 1/2 and 100 makes more visual sense on the Smith Chart than on the right half plane. It is reasonable to ask, where did the left half plane go?? It's the stuff outside the Smith Chart.? This is important to know, for example, when reading Besser on circles of stability. Incidentally, s21 of a bandpass crystal filter is sort of interesting when plotted on the Smith Chart. Those learning about the Smith Chart will learn what is and is not standard practice.? There is no need to limit us (especially when it requires extra coding).? In fact, being allowed to draw "nutty" graphs will probably hasten understanding of the reasonableness of standard practice. Yes, polar and log polar representation of data is useful, also. thanks tom k1trb . On 9/6/19 8:52 AM, Dr. David Kirkby from Kirkby Microwave Ltd wrote:
On Fri, 6 Sep 2019 at 13:01, Jeff Anderson <jca1955@...> wrote:I would agree --
============================================= Thomas R. Berger Emeritus Professor 53 Kendal Drive Mathematics Department Oberlin, OH 44074 Colby College K1TRB Waterville, ME 04901 ============================================= |
Andy G0FTD 3rd Earl of Whitstable MBE BBC ITV etc etc etc etc etc
On Fri, Sep 6, 2019 at 10:32 AM, Rune Broberg wrote:
Sorry I missed your post. No I didn't get anything running here, but I'll experiment over the coming weeks or months. Too much other stuff to do ;-) Vy 73 de Andy |
Rune
toggle quoted message
Show quoted text
Your application shines on graphing:? a most noteworthy addition.? Thank you.? However, there are other graphical representations which are very useful. Please look at all the graphing modes supplied by myVNA, G8KBB. Page 140. For example, when working with ferrite cores, Rs + Ls is very useful since there is a simple mathematical connection between the Ls curve and the permeability curve. The admittance modes are useful when working with low impedance systems (like short vertical antennas). Of course, there are those who prefer, y, z, h, or ABCD parameters And so on. regards tom k1trb . On 9/6/19 5:47 AM, Rune Broberg wrote:
Jeff, thank you for your suggestions. --
============================================= Thomas R. Berger Emeritus Professor 53 Kendal Drive Mathematics Department Oberlin, OH 44074 Colby College K1TRB Waterville, ME 04901 ============================================= |
to navigate to use esc to dismiss