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

Awg enhancements #538

Merged
merged 7 commits into from
Mar 28, 2017

Conversation

AdriaanRol
Copy link
Contributor

Fixes #537

Changes proposed in this pull request:

  • Added clock_source and ref_source parameters , removed ref
  • Changed get parser for filter function to use INF instead of 9.9e37 (which causes a rare bug)

A motivation for the first change is in #537
A motivation for the second change is that INF is more readable (which is nice), it is the same value under the hood, and the value 9.9e37 caused me trouble when sending it to the monitor. I suspect it will prevent more trouble in the future. Additionally, the manual of the AWG says that this INF setting corresponds to open so the 9.9e37 is really a placeholder value on the 5014 side.

@giulioungaretti @WilliamHPNielsen

NielsBultink and others added 6 commits January 30, 2017 13:40
Adds clock_source and ref_source parameters
Also added a change to the get parser of the lowpass filter setting. The
value 9.9e37 corresponds to infinity but can give problems when sending
it over a port (such as to pyqtgraph).
@YakBizzarro
Copy link
Contributor

I've noticed that all Keithley/Tektronik instruments signal an out-of-range value with 9.9e37, maybe would be nice to have it has a general converter for all these instruments.
Maybe to make it more resistant, it would be better to run the check on the converted value, something like

value = float(string)
value = value if value < 9.9e37 else float("inf")

@AdriaanRol
Copy link
Contributor Author

@YakBizzarro , Good point. I made the parser a bit more robust by using the change you proposed.

@nataliejpg
Copy link
Contributor

I'll try it out this next week, looks good to me though.

Copy link
Contributor

@WilliamHPNielsen WilliamHPNielsen left a comment

Choose a reason for hiding this comment

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

Splendid. This makes a lot of sense. 💃

@WilliamHPNielsen WilliamHPNielsen merged commit e1243c7 into microsoft:master Mar 28, 2017
giulioungaretti pushed a commit that referenced this pull request Mar 28, 2017
Merge: e11da32 2cded75
Author: William H.P. Nielsen <[email protected]>

    Merge pull request #538 from DiCarloLab-Delft/AWG_enhancements
giulioungaretti pushed a commit that referenced this pull request Mar 29, 2017
Merge: e11da32 2cded75
Author: William H.P. Nielsen <[email protected]>

    Merge pull request #538 from DiCarloLab-Delft/AWG_enhancements
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.

5 participants