pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
338 stars 209 forks source link

VNA "Connect" set DIO0 to "1" and PTT to "on" #724

Open Rolf-L opened 6 years ago

Rolf-L commented 6 years ago

How can I prevent the signal DIO0 from being set to "1" when I connect the VNA program? This generates the PTT signal in my Transceiver and turns on the connected Power-Ampli. Only the bias current flows, but it is about 4A and heats up the Power-Ampli after a short time. Can I prevent this by a further command line in the SD Card image file latest version and, if so, what are the commands?

Rolf-L commented 6 years ago

sorry, I dont want to close it

pavel-demin commented 6 years ago

The easiest solution is still to edit line 566 in vna.py and to replace self.set_gpio(1) with self.set_gpio(0).

In the latest GUI version, there is no place left for additional control elements. So, I don't know how to add a GUI element for controlling the GPIO pins.

Rolf-L commented 6 years ago

Hi Pavel, thank you for your quick response. Unfortunately, I'm not a software expert. If I understand that correctly, I'll have to do the correction in the source code and recompile, but that will overwhelm my knowledge. Is it possible to edit start.sh and insert a command line that does the same thing? If so, how should this be? best regards Rolf

pavel-demin commented 6 years ago

If I understand that correctly, I'll have to do the correction in the source code and recompile,

The recompilation isn't required. One of the ideas behind the VNA client is that it should be very easy to modify. The code is in vna.py and the GUI is in vna.ui. Both files can be edited.

So, the following steps should be enough:

Rolf-L commented 6 years ago

Hi Pavel, I can only find vna.py on GitHub, but not on the SDCard in the vna folder. Do I have to make the change on GitHub and what's next?

pavel-demin commented 6 years ago

I can only find vna.py on GitHub, but not on the SDCard in the vna folder.

The vna.py file is on your computer in the folder from where your start the vna.exe program.

Rolf-L commented 6 years ago

Hi Pavel, If you know how to do it, it's really easy :-) Thanks again for your quick help.

best regards and have a nice day Rolf

Rolf-L commented 6 years ago

Hi Pavel, one of my friends is using the HAMLab-Transceiver, made by Red Pitaya. He told me that your vna program connects to the HAMLab, but when pressing open short etc. no reaction takes place. Question: is there a special vna-version for the HAMLab and if so, what is its name and where can he download it, or is it possible, to modify one of the vna-files, like I did it with success? Best regards, Rolf

pavel-demin commented 6 years ago

Hi Rolf,

I don't have any special version for HAMLab. The normal version should work just fine.

I'd suspect that the VNA application included in the HAMLab software is outdated and incompatible with the latest version of the VNA client.

To solve the problem, I'd suggest to install the latest version of the VNA application for Red Pitaya. It can be done via the Application marketplace.

Best regards,

Pavel