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

Add channeled version of TPS #642

Merged
merged 5 commits into from
Jul 12, 2017

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen
Copy link
Collaborator Author

Should probably have a notebook. We may want to just delete the old version?

@WilliamHPNielsen
Copy link
Contributor

@jenshnielsen Yes, I think that noone ever used this driver, so we may just replace the un-channelised version with this one.

self._instrument = instrument

def calc_set_points(self):
message = self._instrument.ask('WFMPre?')
Copy link
Contributor

Choose a reason for hiding this comment

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

There are some conditions under which this call does not return the full expected response. We should ensure that these conditions are not met. (Sorry, I don't remember the details, but it's something like an enabling of the channels)


class TPS2012WithChannels(VisaInstrument):
"""
This is the QCoDeS driver for the Tektronix 2012B oscilloscope.
Copy link
Contributor

Choose a reason for hiding this comment

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

The class name and docstring should agree; either this is THE QCoDeS driver for TPS2012 or it's the channelised version.

print(message)
except VisaIOError:
gotexception = True
self.visa_handle.timeout = original_timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing newline.

@jenshnielsen
Copy link
Collaborator Author

Removed the old one and fixed som pep8 issues, We still need to fix the preamble issue

jenshnielsen and others added 3 commits June 19, 2017 10:07
if not indented the linter thinks DATa and Note are parameters
Otherwise name will be inconsistent with/without channel access
@jenshnielsen jenshnielsen merged commit f9c84ad into microsoft:master Jul 12, 2017
giulioungaretti pushed a commit that referenced this pull request Jul 12, 2017
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Add channeled version of TPS (#642)
giulioungaretti pushed a commit that referenced this pull request Jul 12, 2017
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Add channeled version of TPS (#642)
Dominik-Vogel pushed a commit to Dominik-Vogel/Qcodes that referenced this pull request Aug 9, 2017
* Add channeled version of TPS

* Remove old non channel version of TPS2012 driver

* Docs: deconfuse linter

if not indented the linter thinks DATa and Note are parameters

* use propagated name in scopearray

Otherwise name will be inconsistent with/without channel access
peendebak pushed a commit to VandersypenQutech/Qcodes that referenced this pull request Aug 11, 2017
* Add channeled version of TPS

* Remove old non channel version of TPS2012 driver

* Docs: deconfuse linter

if not indented the linter thinks DATa and Note are parameters

* use propagated name in scopearray

Otherwise name will be inconsistent with/without channel access
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

2 participants