Skip to content

Commit

Permalink
Add output polarity to keysight (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen authored and WilliamHPNielsen committed Nov 22, 2017
1 parent fce35b5 commit 2d907bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qcodes/instrument_drivers/Keysight/Keysight_33500B.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 2d907bd

Please sign in to comment.