Skip to content

Comments

Awg enhancements#538

Merged
WilliamHPNielsen merged 7 commits intomicrosoft:masterfrom
DiCarloLab-Delft:AWG_enhancements
Mar 28, 2017
Merged

Awg enhancements#538
WilliamHPNielsen merged 7 commits intomicrosoft:masterfrom
DiCarloLab-Delft:AWG_enhancements

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

@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