-
Notifications
You must be signed in to change notification settings - Fork 378
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
Phase control in tektronix AFG3152c #1202
base: master
Are you sure you want to change the base?
Phase control in tektronix AFG3152c #1202
Conversation
added ability to read and update phase , and imported pi from math
corrected docstring typo in phase_deg tektronix afg3152c
flake8
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1202 +/- ##
=======================================
Coverage 59.11% 59.12%
=======================================
Files 273 273
Lines 19001 19004 +3
=======================================
+ Hits 11233 11236 +3
Misses 7768 7768
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -108,6 +112,21 @@ class AFG3152CChannel(Channel): | |||
values=FREQ_LIMIT, | |||
) | |||
|
|||
phase_rad = Instrument.control( | |||
"phase:adjust?", "phase:adjust %e RAD", | |||
"""Control the phase in radians (float).""", |
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.
Maybe add the limits like "(float strictly between +-pi) "
Sorry for the delay. Would you mind adding tests for your new method? |
I added phase control for a Tektronix arbitrary waveform generator. The get command always returns radians, but the user has the option to set the phase in radians or degrees.