From 711edf728bb40c70f3c1f11a748c5695e1afad3c Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Tue, 21 Nov 2017 17:01:39 +0100 Subject: [PATCH] Add output polarity to keysight --- qcodes/instrument_drivers/Keysight/Keysight_33500B.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcodes/instrument_drivers/Keysight/Keysight_33500B.py b/qcodes/instrument_drivers/Keysight/Keysight_33500B.py index 26bcfe84d72..71593ea5342 100644 --- a/qcodes/instrument_drivers/Keysight/Keysight_33500B.py +++ b/qcodes/instrument_drivers/Keysight/Keysight_33500B.py @@ -138,6 +138,14 @@ def val_parser(parser, inputstring): val_mapping={'ON': 1, 'OFF': 0} ) + self.add_parameter('ch{}_output_polarity'.format(chan), + label='Channel {} output polarity'.format(chan), + set_cmd='OUTPut{}:POL'.format(chan) + ' {}', + get_cmd='OUTPut{}:POL?'.format(chan), + get_parser=str.strip, + vals=vals.Enum('NORM', 'INV') + ) + self.add_parameter('ch{}_ramp_symmetry'.format(chan), label='Channel {} ramp symmetry'.format(chan), set_cmd=setcmd(chan, 'FUNCtion:RAMP:SYMMetry'),