AD9910 get/set default behavior out of sync #1446

Closed
opened 2026-01-18 19:03:07 +08:00 by bradbqc · 4 comments

Migrated from GitHub: #1809


Bug Report

One-Line Summary

As of #1584, AD9910 get/get_mu and set/set_mu behavior is not aligned.

Issue Details

At a minimum, the default profile used for the get methods should be updated to reflect set. But there are also some significant changes to set in the presence of the (new) ram_destination parameter that should perhaps also be reflected in get.

For simplicity, and to avoid this problem in the future (at least for default arguments), it might make sense to have some module/class variables for default profiles, e.g.:

_DEFAULT_PROFILE = 7
_DEFAULT_PROFILE_RAM = 0
> **Migrated from GitHub:** [#1809](https://github.com/m-labs/artiq/issues/1809) --- <!-- Above are non-Markdown tags for Github auto-prompting issue type. Template based on pylint: https://raw.githubusercontent.com/PyCQA/pylint/master/.github/ISSUE_TEMPLATE/ --> # Bug Report <!-- Thanks for reporting a bug report to ARTIQ! You can also discuss issues and ask questions on IRC (the [#m-labs channel on freenode](https://webchat.freenode.net/?channels=m-labs) or on the [forum](https://forum.m-labs.hk). Please check Github/those forums to avoid posting a repeat issue. Context helps us fix issues faster, so please include the following when relevant: --> ## One-Line Summary As of #1584, AD9910 `get`/`get_mu` and `set`/`set_mu` behavior is not aligned. ## Issue Details At a minimum, the default profile used for the `get` methods should be updated to reflect `set`. But there are also some significant changes to `set` in the presence of the (new) `ram_destination` parameter that should perhaps also be reflected in `get`. For simplicity, and to avoid this problem in the future (at least for default arguments), it might make sense to have some module/class variables for default profiles, e.g.: ``` _DEFAULT_PROFILE = 7 _DEFAULT_PROFILE_RAM = 0 ``` <!-- For in-depth information on bug reporting, see: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines -->
sb10q closed this issue 2026-01-18 19:03:07 +08:00
Author

@lriesebos

@lriesebos
Owner
@occheung
Contributor

@pmldrmota

@pmldrmota
Member

#1818 made the default behavior consistent.

But there are also some significant changes to set in the presence of the (new) ram_destination parameter that should perhaps also be reflected in get.

Please open another issue if you want this change.

#1818 made the default behavior consistent. > But there are also some significant changes to set in the presence of the (new) ram_destination parameter that should perhaps also be reflected in get. Please open another issue if you want this change.
Sign in to join this conversation.