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

Extend the Keysight N9030B with new parameters to allow noise measurement #5963

Merged

Conversation

spauka
Copy link
Contributor

@spauka spauka commented Apr 15, 2024

This PR adds a number of new parameters to the Keysight N9030B Spectrum Analyzer to allow for Noise Spectral Density measurements. In particular we add various parameters for switching the detectors into the appropriate modes, as well as allowing for instrument parameters required for unit conversions to be saved in the snapshot.

Specifically we add:

  • self.mech_attenuation
  • self.preamp
  • self.preamp_enabled
  • self.res_bw_type
  • self.res_bw
  • self.video_bw
  • self.detector
  • self.average_type

In addition, a number of QOL improvements are made to the driver. This includes binary readout of the data and the ability to read data from the instrument buffer (without taking a new trace), and to read averaged data.

The public interface to the driver is extended but no breaking changes are made.

TODO:

  • Test binary transfer mode for higher precision/speed

spauka added 4 commits April 15, 2024 23:22
- The frequency will automatically be shifted if the start is more
than the stop or vice-versa. For setting up automated measurements,
this is preferred so that we don't have to worry about previous
settings.
@spauka spauka changed the title [WIP] Extend the Keysight N9030B with new parameters to allow noise measurement Extend the Keysight N9030B with new parameters to allow noise measurement Apr 22, 2024
@spauka spauka marked this pull request as ready for review April 22, 2024 09:43
@spauka spauka requested a review from a team as a code owner April 22, 2024 09:43
@spauka spauka force-pushed the spauka/instrument/keysight_n9030b_extend branch from feb13a9 to 1d9d958 Compare April 22, 2024 10:08
@spauka
Copy link
Contributor Author

spauka commented Apr 22, 2024

This is tested on a live instrument and seems to work well. Should be ready to merge but let me know if there are any additional comments.

@jenshnielsen jenshnielsen enabled auto-merge April 22, 2024 10:12
@jenshnielsen
Copy link
Collaborator

@spauka Looks like there is a test failure that needs to be addressed

@spauka
Copy link
Contributor Author

spauka commented Apr 22, 2024

Looks like I need to add a few extra commands into the device sim class. I will fix tomorrow :)

auto-merge was automatically disabled April 23, 2024 01:41

Head branch was pushed to by a user without write access

@spauka spauka force-pushed the spauka/instrument/keysight_n9030b_extend branch from ae26190 to c50e088 Compare April 23, 2024 01:45
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 64.81481% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 67.42%. Comparing base (0ee413d) to head (7e0f1dc).

Files Patch % Lines
...des/instrument_drivers/Keysight/Keysight_N9030B.py 64.81% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5963      +/-   ##
==========================================
+ Coverage   67.40%   67.42%   +0.02%     
==========================================
  Files         349      349              
  Lines       30199    30201       +2     
==========================================
+ Hits        20356    20364       +8     
+ Misses       9843     9837       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jenshnielsen jenshnielsen added this pull request to the merge queue Apr 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 23, 2024
@spauka
Copy link
Contributor Author

spauka commented Apr 23, 2024

@jenshnielsen This seems to have been an intermittent test failure not related to this PR. Can you requeue?

@jenshnielsen jenshnielsen added this pull request to the merge queue Apr 23, 2024
Merged via the queue into microsoft:main with commit 3f8c500 Apr 23, 2024
18 of 19 checks passed
@spauka spauka deleted the spauka/instrument/keysight_n9030b_extend branch April 24, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants