scikit-rf icon indicating copy to clipboard operation
scikit-rf copied to clipboard

HP8720B driver

Open leonknight99-flann opened this issue 1 year ago • 6 comments

Hi, Here is my code to interface with a HP8720B VNA (2 ports up to 20GHz). First time making a pull request so say if I need to do anything extra. I created the code by modifying the 8510 driver as they have similar GPIB commands although certain aspects behave differently.

Currently I have commented out the compound sweep as I have not looked into how that works and this VNA can go up to 1601 points anyway. I have also found that I have not been able to communicate with the VNA using FORM4 (seems to only output the first frequency point) so have relied on the previous FORM2 code from the 8510 - which is quicker anyway. The inbuilt frequency segment sweep mode seems to work for the initial data output and then the VNA gets stuck. Currently unsure why this is.

Thanks, Leon

leonknight99-flann avatar May 30 '24 15:05 leonknight99-flann

@cafeclimber , can you have a look please?

@leonknight99-flann there are several things that make the code not passing the linter. Can you correct them? (you can use pre-commit to test locally)

jhillairet avatar Jun 02 '24 14:06 jhillairet

Hi, I think I have set up the pre-commit properly this time and hopefully found all the white spaces etc that I missed previously. Hope its all ok to merge this time!

leonknight99-flann avatar Jun 10 '24 15:06 leonknight99-flann

@leonknight99-flann could you clean up the unused comment lines of code?

jhillairet avatar Jun 19 '24 06:06 jhillairet

@jhillairet Sorry been on holiday for the past few weeks, will get around to clearing the code and comments up hopefully in the next couple weeks

leonknight99-flann avatar Jul 02 '24 11:07 leonknight99-flann

@jhillairet Sorry been on holiday for the past few weeks, will get around to clearing the code and comments up hopefully in the next couple weeks

@leonknight99-flann could you finish this PR? to include it in the next release eventually.

jhillairet avatar Aug 28 '24 06:08 jhillairet

@leonknight99-flann do you plan to finalize this PR?

jhillairet avatar Oct 17 '24 17:10 jhillairet

@leonknight99-flann do you plan to finalize this PR?

Hi, Sorry I have not managed to finalize yet, life has gotten unexpectedly quite busy for the past few months. I still plan to finish it at some point although cannot guarantee when. Up to you if you would like to keep this open or close it and then I can reopen when I am next free to work finishing it. Thanks!

leonknight99-flann avatar Oct 22 '24 07:10 leonknight99-flann

Hi, I have removed all the commented code ready for a release. As a note, this code was copied from the 8510 code so that compound sweeps would be possible. I have not had time to implement these so just removed it instead. The 8720B also has support for a native frequency segment mode which seems to achieve the same objective. Mine currently breaks after the first output so requires a hard reset of the analyser although I am not sure why this is. I have seen that with the more recent PNA example that if the VNA uses channels then a sub-class of channel should be included. I have not completed this yet as channels work differently for these older analysers anyway.

Hope it is all ok!

leonknight99-flann avatar Nov 06 '24 11:11 leonknight99-flann

@leonknight99-flann could you fix the conflicts and update this PR?

jhillairet avatar Jan 20 '25 09:01 jhillairet

@leonknight99-flann could you fix the conflicts and update this PR?

Hopefully this has fixed all the conflicts? I had to manually change some of the files as I think my IDE is set up in a way that it does not like committing files with no blank space on the end. Say if I need to do anything else!

leonknight99-flann avatar Jan 20 '25 10:01 leonknight99-flann

Hi, the linting comes up with this error: 'Error: skrf/calibration/tests/test_deembedding.py:576:58: W292 No newline at end of file' after I have copied that file from the main git page. Just wondering if I have an out of date lint or if something else has happened and its just been missed.

leonknight99-flann avatar Jan 20 '25 16:01 leonknight99-flann

@jhillairet Hi, Just wondering if this all ok or if I need to do any further work before it is merged. Thanks, Leon

leonknight99-flann avatar Apr 01 '25 11:04 leonknight99-flann

Hi, the linting comes up with this error: 'Error: skrf/calibration/tests/test_deembedding.py:576:58: W292 No newline at end of file' after I have copied that file from the main git page. Just wondering if I have an out of date lint or if something else has happened and its just been missed.

indeed, the linter still complains. I'll fix it.

jhillairet avatar Apr 01 '25 12:04 jhillairet