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

Phase control in tektronix AFG3152c #1202

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

FlyingCurryMonster
Copy link

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.

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.12%. Comparing base (ee56b9f) to head (0b7bc32).

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           
Flag Coverage Δ
unittests 59.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -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).""",
Copy link
Member

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) "

@BenediktBurger
Copy link
Member

Sorry for the delay.

Would you mind adding tests for your new method?

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.

2 participants