-
Notifications
You must be signed in to change notification settings - Fork 301
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
Driver for Tektronix Oscilloscopes: MSO/DPO5000/B, DPO7000/C, DPO70000/B/C/D/DX, DSA70000/B/C/D, and MSO70000/C/DX #1579
Conversation
…ent type/source and getting the measurement value
…ce or type and retrieving a measurement value is at least 0.1 second
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments.
But my biggest problem is the conciseness of the example notebook :) could you make it more descriptive and explain how the driver works and how users can use it? preferably with some plain text next to the code :)
… endianness/bytes per samples/signed/unsigned. WIP: Figuring out how to perform/plot spectral analysis.
@astafan8 Thanks so much for your comments. This was really helpful and I am adjusting my PR according to your comments. My latest commit is still work in progress. Let me send you a message when I think we should have a look at my PR again. Thanks again! |
…rent driver, factor code in a way that will make it possible to add support in the future without breaking the current interface.
2) Added comments in the example 3) Linting passes.
measurement_count -> number_of_measurements
@astafan8 Can we have another look at this? I did my best to apply the modifications you suggested. Thanks, Sohail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements!
I left a minor comment, and once you confirm that this code has been tested on the actual instrument and works ok, i'll merge.
More yaml-simulation-based tests would be better, but i leave this up to you.
2) fingers crossed that documents builder passes now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge after:
- There is some sphinx issue that needs to be fixed for CI.
- Was this code tested on a real device? (need a confirmation)
Codecov Report
@@ Coverage Diff @@
## master #1579 +/- ##
=======================================
Coverage 72.34% 72.34%
=======================================
Files 116 116
Lines 12390 12390
=======================================
Hits 8964 8964
Misses 3426 3426 |
@astafan8, please do not merge this yet. There are some missing features I forgot to add. Specifically, I need to add a submodule for triggering configuration. |
…ements. E.g. Instead of having to do `tek.measurement[0].type('amplitude')` followed by `tek.measurement[0].value()`, we can now simply do `tek.measurement[0].amplitude()`
De-approving the PR until a new feature is added
@sohailc ok, fine. But why does that feature have to be added in THIS PR? Can't we merge this first, and then the submodule is added in another PR? |
2) measurements is a list of tuples (name, unit)
I thought it handier to add all needed features in this PR. Anyway, I have added the submodule now so if it passes the tests and you approve of the code, can you please merge it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
This PR adds a driver for the following oscilloscopes: Tektronix MSO/DPO5000/B, DPO7000/C, DPO70000/B/C/D/DX, DSA70000/B/C/D, and MSO70000/C/DX Series Digital Oscilloscopes.