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

Znb20 new driver with channel support #643

Merged
merged 58 commits into from
Jul 17, 2017

Conversation

jenshnielsen
Copy link
Collaborator

Replaces #623

@nataliejpg of possible interest

@jenshnielsen
Copy link
Collaborator Author

jenshnielsen commented Jun 16, 2017

Needs:

  • Actually test the new implementation with channels with a real life vna
  • benchmark performance implications of multiple channels
  • Fix multi get for tracedb (The setpoints are replicated)
  • Make parameter configurable (descoped for now)
  • Trace Multi parameter, names are wrong VNA_S22_S22_magnitude and so on

get_cmd='SENS{}:FREQ:SPAN?'.format(n),
set_cmd=self._set_span,
get_parser=float,
vals=vals.Numbers(1, self._parent._max_freq - self._parent._min_freq))
self.add_parameter(name='npts',
get_cmd='SENS:SWE:POIN?',
set_cmd=self._set_npts,
get_parser=int)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should probably be on the instrument of have the channel number inside?

@jenshnielsen jenshnielsen merged commit 0052f2d into microsoft:master Jul 17, 2017
giulioungaretti pushed a commit that referenced this pull request Jul 17, 2017
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Znb20 new driver with channel support (#643)
Dominik-Vogel pushed a commit to Dominik-Vogel/Qcodes that referenced this pull request Aug 9, 2017
* fix: refactor Instrument to avoid removing methods from channels

* Include channels in print_readable_snaphoot

* Fix: make locked channels a named tuple

That way you can access the names on the channellist via names as soon as they are locked

* Fix: channels add support for indexing from 1

many instruments have hardware channels that are indexed and start at 1

* Fix linting errors in channel

* fix typo

* Move print readable snapshot to instrument class where it belongs

* Fix: more channel annotation

* Improve error message

* pprint limit line lenght of header to max char

* pep8 line lenght

* Fix: channel remove support for oneindexed channels

* improve type annotation

* Optional -> Union

* add channels to api docs

* fix: make submodules nested

* add submodule attributes to base

* Docs strings

* Fix: add option to set span and center

* Int -> float

* Fix: wip towards more channels in znb20

* Update znb notebook

* Znb 20 add setpoint unit

* Working snm for ZNB

* refresh znb noteboo

* Add autosacle and display to vna

* Add validators for freq settings

* Init for all channels

* Ensure that start<stop

* Add warnings if start and stop cannot be set exactly

* Znb20 small improvements

* Update Znb20 notebook

* Add option to get db traces

* update to example notebook

* Correct initial values

* Fix: ZNB20 use channels

* Fix: znb simplify string formatting

* znb20 less redundant passing of parameters

* znb call save_val in znb20 parameters

* ZNB20 remove usage of 1 indexed

* Set number of points per channel

* first pass at updating notebook to channels

* Ensure the right parameter is measured

* Add support for instruments with variable number of ports

* Handle different max/min freqs

* Rename driver

and ensure that we are waiting on the right channel for avg

* fix: remove autoscale all and name freq axis

Autoscale all is redundant since it can now be done with channels

the setpoints need to be different for different channels since we may not use the same freq axis for all

* Update example notebook

* add benchmark

* Replace namedtuple by dict

Make it possible to get channels by name even when not locked

* make it possible to init znb without channels

* Fix change init order

* add option to clear channels and traces

* update example notebook

* Add support for changing format and rename trace paramters

* update example notebook
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.

None yet

1 participant