From 3475e49d95c587384102d754975a460089c5b75b Mon Sep 17 00:00:00 2001 From: lukabavdaz Date: Thu, 3 Nov 2016 15:35:15 +0100 Subject: [PATCH] fix: Update SR830 driver (#379) * 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. --- qcodes/instrument_drivers/stanford_research/SR830.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcodes/instrument_drivers/stanford_research/SR830.py b/qcodes/instrument_drivers/stanford_research/SR830.py index 26b612731f2..776fddfcf32 100644 --- a/qcodes/instrument_drivers/stanford_research/SR830.py +++ b/qcodes/instrument_drivers/stanford_research/SR830.py @@ -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), @@ -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',