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

Keithley2400 driver #235

Closed
wants to merge 2 commits into from
Closed

Keithley2400 driver #235

wants to merge 2 commits into from

Conversation

ThomasKanne
Copy link

Changes proposed in this pull request:

  • Made a Keithley driver for the 2400 model

@giulioungaretti @alexcjohnson @MerlinSmiles

self.add_parameter('resistance',
get_cmd=':READ?',
get_parser=self._resistance_parser,
label='Voltage',
Copy link
Contributor

@MerlinSmiles MerlinSmiles Jun 11, 2016

Choose a reason for hiding this comment

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

This label is probably not correct?
And the units neither?

@qcodes-bot
Copy link

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 8


Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py  3

See the complete overview on Codacy

MerlinSmiler = [float(x) for x in msg.split(',')]
return MerlinSmiler[0]

def _curr_parser(self, msg):

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

@qcodes-bot
Copy link

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 8


Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py  3

See the complete overview on Codacy

def reset(self):
self.write(':*RST')

def _volt_parser(self, msg):

Choose a reason for hiding this comment

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

label='Voltage',
units='V')

self.add_parameter('curr',

Choose a reason for hiding this comment

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

Codacy Issue found: Trailing whitespace


self.add_parameter('volt',
get_cmd=':READ?',
get_parser=self._volt_parser,

Choose a reason for hiding this comment

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

Codacy Issue found: Trailing whitespace

MerlinSmiler = [float(x) for x in msg.split(',')]
return MerlinSmiler[0]

def _curr_parser(self, msg):

Choose a reason for hiding this comment

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

MerlinSmilerIkke = [float(x) for x in msg.split(',')]
return MerlinSmilerIkke[1]

def _resistance_parser(self, msg):

Choose a reason for hiding this comment

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


self.add_parameter('resistance',
get_cmd=':READ?',
get_parser=self._resistance_parser,

Choose a reason for hiding this comment

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

Codacy Issue found: Trailing whitespace

else:
raise AttributeError('Mode does not exist')
self.write(':SOUR:FUNC {:s}'.format(msg))

Choose a reason for hiding this comment

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

Codacy Issue found: Trailing whitespace


self.add_parameter('curr',
get_cmd=':READ?',
get_parser=self._curr_parser,

Choose a reason for hiding this comment

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

Codacy Issue found: Trailing whitespace

@qcodes-bot
Copy link

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 8


Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py  3

See the complete overview on Codacy

WilliamHPNielsen added a commit to WilliamHPNielsen/Qcodes that referenced this pull request Feb 10, 2017
This is a clean-up of PR microsoft#235. I suspect buggy behaviour but have not tested the driver.
@WilliamHPNielsen
Copy link
Contributor

This is now superseded by PR #488

I'm closing this PR and deleting the branch.

@WilliamHPNielsen WilliamHPNielsen deleted the Keithley2400-driver branch February 10, 2017 13:00
giulioungaretti pushed a commit that referenced this pull request Mar 9, 2017
clean-up of PR #235. I suspect buggy behaviour but have not tested the driver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants