Skip to content

Commit

Permalink
Merge pull request #111 from simonzihlmann/fix_SMW_driver
Browse files Browse the repository at this point in the history
Fix smw driver
  • Loading branch information
jenshnielsen authored Nov 23, 2021
2 parents 8cc993a + a4cf8c7 commit 238f4f7
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions qcodes_contrib_drivers/drivers/RohdeSchwarz/SMW200A.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int, chnum
set_cmd=f'SOUR{self.hwchan}:' + 'PM:RAT {}',
get_cmd=f'SOUR{self.hwchan}:' + 'PM:RAT?',
vals=vals.Numbers(0, 100),
unti='%',
unit='%',
docstring="Sets the deviation ratio (path2 to path1) in percent.")

self.add_parameter('sensitivity',
Expand Down Expand Up @@ -1129,8 +1129,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int):
docstring="Waveform shape for sweep. Allowed values"
" are 'SAWTOOTH' and 'TRIANGLE'")

self.add_parameter('execute',
label='Executes one RF level sweep',
self.add_function('execute',
call_cmd=f'SOUR{self.hwchan}:LFO:SWE:EXEC',
docstring="Executes one RF level sweep. Use this without any ( )")

Expand Down Expand Up @@ -1582,8 +1581,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int):
docstring="Waveform shape for sweep. Valid are 'SAWTOOTH' and"
" 'TRIANGLE'.")

self.add_parameter('execute',
label='Executes one RF level sweep',
self.add_function('execute',
call_cmd=f'SOUR{self.hwchan}:SWE:POW:EXEC',
docstring="Executes one RF level sweep. Use no braces () here!")

Expand All @@ -1606,8 +1604,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int):
docstring="(ReadOnly) Get the current sweep state. Return"
" values are 'ON' or 'OFF'.")

self.add_parameter('reset',
label='Reset the sweep',
self.add_function('reset',
call_cmd=f'SOUR{self.hwchan}:SWE:RES',
docstring="Resets all active sweeps to the starting point."
" Use no braces () here!")
Expand Down Expand Up @@ -1695,8 +1692,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int):
docstring="Waveform shape for sweep. Valid values are 'SAWTOOTH' or"
" 'TRIANGLE'.")

self.add_parameter('execute',
label='Executes one RF frequency sweep',
self.add_function('execute',
call_cmd=f'SOUR{self.hwchan}:SWE:EXEC',
docstring="Executes one RF frequency sweep. Use no braces () here!")

Expand Down Expand Up @@ -1741,8 +1737,7 @@ def __init__(self, parent: 'RohdeSchwarz_SMW200A', name: str, hwchan: int):
" of the output channel and will be read during the"
" set lin_step command.")

self.add_parameter('reset',
label='Reset the sweep',
self.add_function('reset',
call_cmd=f'SOUR{self.hwchan}:SWE:RES',
docstring="Resets all active sweeps to the starting point."
" Use no braces () here!")
Expand Down

0 comments on commit 238f4f7

Please sign in to comment.