Skip to content

Commit

Permalink
Merge pull request #807 from johnhornibrook/driver-n5245a
Browse files Browse the repository at this point in the history
driver/Keysight N5245A
  • Loading branch information
astafan8 authored Jul 27, 2018
2 parents f7b173f + e9e13cf commit 3d49344
Show file tree
Hide file tree
Showing 7 changed files with 879 additions and 2 deletions.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions qcodes/dataset/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ def register_parameter(
my_setpoints: Optional[Sequence[Union[str, _BaseParameter]]]
if isinstance(parameter, ArrayParameter):
spname_parts = []
if parameter.instrument is not None:
inst_name = parameter.instrument.name
if parameter._instrument is not None:
inst_name = parameter._instrument.name
if inst_name is not None:
spname_parts.append(inst_name)
if parameter.setpoint_names is not None:
Expand Down
9 changes: 9 additions & 0 deletions qcodes/instrument/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,15 @@ def append(self, obj: InstrumentChannel):
self._channels = cast(List[InstrumentChannel], self._channels)
return self._channels.append(obj)

def clear(self):
"""
Clear all items from the channel list.
"""
if self._locked:
raise AttributeError("Cannot clear a locked channel list")
self._channels.clear()
self._channel_mapping.clear()

def remove(self, obj: InstrumentChannel):
"""
Removes obj from channellist if not locked.
Expand Down
9 changes: 9 additions & 0 deletions qcodes/instrument_drivers/Keysight/N5230C.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from . import N52xx

class N5230C(N52xx.PNABase):
def __init__(self, name, address, **kwargs):
super().__init__(name, address,
min_freq=300e3, max_freq=13.5e9,
min_power=-90, max_power=13,
nports=2,
**kwargs)
15 changes: 15 additions & 0 deletions qcodes/instrument_drivers/Keysight/N5245A.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from . import N52xx

class N5245A(N52xx.PNAxBase):
def __init__(self, name, address, **kwargs):
super().__init__(name, address,
min_freq=10e6, max_freq=50e9,
min_power=-30, max_power=13,
nports=4,
**kwargs)

options = self.get_options()
if "419" in options:
self._set_power_limits(min_power=-90, max_power=13)
if "080" in options:
self._enable_fom()
Loading

0 comments on commit 3d49344

Please sign in to comment.