Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VNA program with IN2 instead of IN1 #1033

Closed
dl6jan opened this issue Feb 4, 2022 · 2 comments
Closed

VNA program with IN2 instead of IN1 #1033

dl6jan opened this issue Feb 4, 2022 · 2 comments
Labels

Comments

@dl6jan
Copy link

dl6jan commented Feb 4, 2022

Is there a RP VNA version available, using IN2 and OUT2 instead of IN1 and OUT1?.

Using IN2 requires a very simple modification of the Python code in vna.py: adc1 should be replaced with adc2 on line 212 in vna.py.

Using OUT2 requires some modifications of the FPGA configuration.

Originally posted by @pavel-demin in #170 (comment)

Hi Pavel,
I'd also like to use your VNA software with IN2 and OUT1 or OUT2. Long ago you wrote, the vna.py program can be modified at line 212 by replacing adc1 with adc2. The current version of vna.py looks completely different so I can not find something like that on line 212.
Is still possible to use IN2 instead ?? On line 593 - 605 I find the following:

adc1 = self.data[0::2]
adc2 = self.data[1::2]
attr = getattr(self, self.mode)
start = self.sweep_start
stop = self.sweep_stop
size = self.sweep_size
attr.freq = np.linspace(start, stop, size)
attr.data = adc1[0:size]copy()
self.update_tab()
self.reading = False
if not self.auto:
self.progressBar.setValue(0)
self.set_enabled(True)

Maybe "attr.data = adc1[0:size]copy()" is the line that had to be changed ???

Can you help ?

Regards Christian (DL6JAN)

@dl6jan dl6jan changed the title Hi Rolf, VNA program with IN2 instead of IN1 Feb 4, 2022
@pavel-demin
Copy link
Owner

Maybe "attr.data = adc1[0:size]copy()" is the line that had to be changed ???

Yes, I think it should be enough to replace adc1 with adc2:

        attr.data = adc2[0:size].copy()

To enable OUT2, it should be enough to set 'Level 2' to 0 dB in the VNA GUI.

@dl6jan
Copy link
Author

dl6jan commented Feb 4, 2022

Hi Pavel,
thanks a lot for your fast reply, will try it out in the next days ...
What I am still missing is a manual for your vna.py program. I'm not an expert and I do not even know what "Level2" in your VNA GUI is but think I'm able to change it to 0dB. Most of the GUI is self explaining but I do not understand all of the functions/buttons I see there ....
Anyway, I'm willing do study it :-)

Chris, DL6JAN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants