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

Added driver for Basel current preamplifier. #1327

Merged
merged 3 commits into from
Jan 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
45 changes: 45 additions & 0 deletions qcodes/instrument_drivers/basel/sp983c.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
from qcodes.instrument.base import Instrument
from qcodes.utils.validators import Enum


class SP983C(Instrument):
"""
A virtual driver for the Basel SP 983 and SP 983C current to voltage
converter.

This driver supports both the SP 983 and SP 983C models. These differ only
in their handling of input offset voltage. It is the responsibility of the
user to capture the input offset, (from the voltage supply) and compensate
that as needed depending on the model.

Note that, as this is a purely virtual driver, there is no support
for the the remote control interface (SP 983a). It is the responsibility of
the user to ensure that values set here are in accordance with the values
set on the instrument.
"""

def __init__(self, name, **kwargs):
super().__init__(name, **kwargs)

self.add_parameter('gain',
initial_value=1e8,
label='Gain',
unit='V/A',
get_cmd=None, set_cmd=None,
vals=Enum(1e09, 1e08, 1e07, 1e06, 1e05))

self.add_parameter('fcut',
initial_value=1e3,
label='Cutoff frequency',
unit='Hz',
get_cmd=None, set_cmd=None,
vals=Enum(30., 100., 300., 1e3, 3e3, 10e3, 30e3,
100e3, 1e6))

def get_idn(self):
vendor = 'Physics Basel'
model = 'SP 983(c)'
serial = None
firmware = None
return {'vendor': vendor, 'model': model,
'serial': serial, 'firmware': firmware}