Skip to content

Commit

Permalink
fix: Update SR830 driver (#379)
Browse files Browse the repository at this point in the history
* Fix SR830

Updated aux input/output and auto_offset to use the proper values
(written in the manual)
Added the function to get the ID.

* Removed id parameter

Previously used for testing, now not needed anymore.
To get the id the function get_idn() should be used.
  • Loading branch information
lukabavdaz authored and giulioungaretti committed Nov 3, 2016
1 parent 205147e commit 3475e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/instrument_drivers/stanford_research/SR830.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def parse_offset_get(s):
get_parser=parse_offset_get)

# Aux input/output
for i in [0, 1, 2, 3]:
for i in [1, 2, 3, 4]:
self.add_parameter('aux_in{}'.format(i),
label='Aux input {}'.format(i),
get_cmd='OAUX? {}'.format(i),
Expand Down Expand Up @@ -239,7 +239,7 @@ def parse_offset_get(s):
self.add_function('auto_gain', call_cmd='AGAN')
self.add_function('auto_reserve', call_cmd='ARSV')
self.add_function('auto_phase', call_cmd='APHS')
self.add_function('auto_offset', call_cmd='AOFF {0}', args=[Enum(1, 2, 3, 4)])
self.add_function('auto_offset', call_cmd='AOFF {0}', args=[Enum(1, 2, 3)])

# Data transfer
self.add_parameter('X',
Expand Down

0 comments on commit 3475e49

Please sign in to comment.