Skip to content

Commit

Permalink
Fix: add a phase parameter to keysight 33500b (#551)
Browse files Browse the repository at this point in the history
We need the phase parameter for fast charge diagrams
  • Loading branch information
jenshnielsen authored and WilliamHPNielsen committed Mar 30, 2017
1 parent d5f413f commit dce438b
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 @@ -46,6 +46,14 @@ def getcmd(channel, setting):
vals=vals.Numbers(1e-6, 30e6)
)

self.add_parameter('ch{}_phase'.format(chan),
label='Channel {} phase'.format(chan),
set_cmd=setcmd(chan, 'PHASe'),
get_cmd=getcmd(chan, 'PHASe'),
get_parser=float,
unit='deg',
vals=vals.Numbers(0, 360)
)
self.add_parameter('ch{}_amplitude_unit'.format(chan),
label='Channel {} amplitude unit'.format(chan),
set_cmd=setcmd(chan, 'VOLTage:UNIT'),
Expand Down

0 comments on commit dce438b

Please sign in to comment.