vnaproperty.h #2
Replies: 20 comments 3 replies
-
Hi Wolfgang. Thank you for trying this software out. The vnaproperty.h file comes from a library in a different git repo: https://github.com/scott-guthridge/libvna) Have you installed that? You can build libvna from source, or under Releases, you'll find both RPM and Debian binary packages. I haven't contributed any updates to n2pkvna for a while because I wasn't getting any complaints from anyone, so I figured no one was using it. If I get feedback, though, I will respond. |
Beta Was this translation helpful? Give feedback.
-
Hi Scott, n2pkvna-gui I am on Rocky-Linux 8.10 Wolfgang BTW: I had to install libyaml-devel for libvna; maybe it's worthwhile mentioning that in the README or automatically checking the dependency in the config |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing out missing dependencies. The GUI needs the perl-Browser-Open package. And I see that the n2pkvna build does currently need libyaml-devel, but I think I can rid of that [direct] dependency since n2pkvna doesn't compile against that library. Build of libvna still needs it, but its README-BUILD says that. I don't have Rocky, but I started up a clean fedora39 in a container -- so not much is already installed -- and created a non-root user with sudo access. Here are the steps I followed:
I will update the docs and try to get rid of n2pkvna's dependency on libyaml-devel. Thanks. |
Beta Was this translation helpful? Give feedback.
-
With your help I now can compile and install. n2pkvna-gui I have created the group n2pkvna and added the current user. It does not work as root either. |
Beta Was this translation helpful? Give feedback.
-
You do need a udev rules file -- the
To debug this further, run
Note the 100b (as opposed to 100a). This indicates that the firmware was successfully loaded. I'll add that and a couple other details to the README, too. |
Beta Was this translation helpful? Give feedback.
-
Something that might simplify this would be building from RPM source instead of doing everything manually. This has the advantage of automatically checking for missing build-time dependencies and automatically installing all the run-time dependencies. It also does things like running
When I get a chance, I'll make n2pkvna provide a .src.rpm file like libvna does, then you won't even need to install autoconf or git! |
Beta Was this translation helpful? Give feedback.
-
the firmware seems to be my problem: Bus 001 Device 008: ID 0547:100a Anchor Chips, Inc. Do I need to upload a specific firmware? Is this different to what G8KBB is using with his XP-software? BTW: Yes I could try the rpm, but as I will probably try to contribute, I need to be able to compile from source anyway. |
Beta Was this translation helpful? Give feedback.
-
I just realized, that I don't have /sbin/fxload |
Beta Was this translation helpful? Give feedback.
-
O.K. I had to install Now the gui is opening. I guess I need to read the doc now. Calibration is not obvious here ... |
Beta Was this translation helpful? Give feedback.
-
Apparently Rocky Linux does not read udev-rules from /usr/local/lib/udev/rules.d |
Beta Was this translation helpful? Give feedback.
-
O.K., many thanks for your patients, |
Beta Was this translation helpful? Give feedback.
-
If you go to Help / Manual, it should bring up the HTML manual. Go through the quick start guide and run through the checkoff list. Basically, you just go through the tabs in the app: First go to Setup and create a configuration for your particular hardware config. Likely, the defaults will be close if not exact. Then go to calibrate and create a calibration. Finally, go to Measure and do the measurement. Give me feedback on what's confusing -- I tried to make it really easy. But there are a bunch of different setups for the N2PK VNA: simple reflection bridge on one port, Full S parameter test set, RF-IV, and any of those with the attenuator. And then I offered a bunch of different calibration options because libvna supports much more than simple SOLT. But if you just want the usual SOLT, select calibration type E12, and you should be set. |
Beta Was this translation helpful? Give feedback.
-
The scans are a little slow because libn2pkvna measures each point 8 times and averages. It's a pretty easy code change to have it measure just 4 (like the Windows version does by default), and that will double the speed. I plan to make it configurable with default probably at 4. Minimum possible is 2 measurements per point to measure the I and Q to get the phase, but the results are a lot more accurate with 4 because this subtracts out DC offset in the ADCs. For prioritization purposes, let me know what missing features bother you the most: slow scans, missing Smith chart graphs, or something else. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
-On the "Prepare VNA for open measurement": I need to double check |
Beta Was this translation helpful? Give feedback.
-
-On the "Prepare VNA for open measurement": O.K. I named the b11 in the RB setup "open". That's why it showed "open" in measure. Everything fine here. -Many ideas, much work ... I know ... BTW: I see the "attenuation"-button on some panes. I am not aware the N2PK-hardware can do that standalone, so I guess it would require extra hardware? |
Beta Was this translation helpful? Give feedback.
-
Latest code on the "development" branch should fix the plots to use lines instead of points and to show the grid. It also fixes the missing dependency on gnuplot. Back on the "Prepare VNA for open measurement", in the majority of setups, there should be no "manual steps". Let me give examples of when those do and don't apply. First, a case where you would use them: suppose that you have a manual switch (not a relay) that swaps the two VNA ports, and you suspect that switch is not perfect and want to include corrections for it in the calibration. Then you would set up two manual steps, e.g. (1) "Measure S11 and S21", (2) "Measure S12 and S22". These would prompt you to turn the switch to the right position before each measurement is made. Edit: if that switch is between the reflection bridge and DUT (as opposed to being on RF out behind two reflection bridges), then you have to use E12 error terms to correct for it. Second, an example where you would NOT use any manual steps: you have a VNA with reflection bridge on port 1 and just the detector on port 2 that measures S11 and S21 only. Here, to measure all four S parameters, you do need to manually switch the two probes on the DUT. But these are NOT the manual steps the Setup is talking about. In this case, the number of manual steps should be set to zero. The measure screen will still prompt you to swap the ports, but this swap doesn't need to be included in the calibration because any connection non-repeatability you might have won't be consistent anyway, so you don't really want that in the calibration. |
Beta Was this translation helpful? Give feedback.
-
-Yes, the latest upload in the development branch connects the points in the graph. |
Beta Was this translation helpful? Give feedback.
-
I added the Smith Chart and improved plot ranges and units getting preserved when changing what to plot.
All the those buttons (use switch, use RF-IV, use references) do is add and remove choices in the table below. If you check use-references, then the a11, a12, a21, and a22 inputs are added. Look at the "Full S-Parameters With Reference Measurements 2x2" example on the Setup page of the manual for how reference inputs could be used. I'm not sure how realistic this example is because the errors introduced by the relays would have be less than the errors the reference inputs are trying to correct. You can do it without relays, though, for a one-port VNA setup. You just need a bi-directional reflection bridge.
I think the windows software holds the LO phase constant and rotates the RF phase. This library holds the RF phase constant and rotates the LO phase. I chose to hold RF constant, thinking that if the DUT is a really high order filter with long transient, it's better to keep the stimulus steady while measuring. I think that which one you hold constants doesn't really matter, though, because it's only the relationship between them that we're measuring. I made a lot of code changes -- see if you can break it. If not, I'll make a new release. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply, I was very busy but gave it a try today. Wolfgang, |
Beta Was this translation helpful? Give feedback.
-
apparently the file vnaproperty.h is missing in the tar-ball:
n2pkvna.h:43:10: fatal error: vnaproperty.h: No such file or directory
Many thanks,
Wolfgang
Beta Was this translation helpful? Give feedback.
All reactions