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

fix rigol dg4000 value mappings #6345

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

konosubakonoakua
Copy link
Contributor

fix value mappings

@konosubakonoakua konosubakonoakua requested a review from a team as a code owner August 13, 2024 08:36
@konosubakonoakua
Copy link
Contributor Author

DG4000 cannot be upgraded with an arbitrary U disk.

I have consulted with Rigol Tech support, They said it's better to send my device to them.
Their engineer can do the upgrade. However, I don't have time to wait for that.
IMO, I should leave this PR open in case someone else have encountered the same issue.

@@ -238,13 +241,15 @@ def __init__(
ch + "output_polarity",
get_cmd=output + "POL?",
set_cmd=output + "POL {}",
val_mapping={"normal": "NORM", "inverted": "INV"},
get_parser=_parse_string_strip,
val_mapping={"normal": "NORMAL", "inverted": "INVERTED"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jenshnielsen should I update the val_mapping according to the instrument manual?

@konosubakonoakua
Copy link
Contributor Author

@jenshnielsen I have restore the parser to int, please review again.

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