from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AchannelCls:
"""
| Commands in total: 64
| Subgroups: 15
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("achannel", core, parent)
@property
def presetRefLevel(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_presetRefLevel'):
from .PresetRefLevel import PresetRefLevelCls
self._presetRefLevel = PresetRefLevelCls(self._core, self._cmd_group)
return self._presetRefLevel
@property
def ssetup(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ssetup'):
from .Ssetup import SsetupCls
self._ssetup = SsetupCls(self._core, self._cmd_group)
return self._ssetup
@property
def filterPy(self):
"""
| Commands in total: 20
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
@property
def spacing(self):
"""
| Commands in total: 8
| Subgroups: 6
| Direct child commands: 0
"""
if not hasattr(self, '_spacing'):
from .Spacing import SpacingCls
self._spacing = SpacingCls(self._core, self._cmd_group)
return self._spacing
@property
def gchannel(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_gchannel'):
from .Gchannel import GchannelCls
self._gchannel = GchannelCls(self._core, self._cmd_group)
return self._gchannel
@property
def name(self):
"""
| Commands in total: 5
| Subgroups: 5
| Direct child commands: 0
"""
if not hasattr(self, '_name'):
from .Name import NameCls
self._name = NameCls(self._core, self._cmd_group)
return self._name
@property
def txChannel(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_txChannel'):
from .TxChannel import TxChannelCls
self._txChannel = TxChannelCls(self._core, self._cmd_group)
return self._txChannel
@property
def acPairs(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_acPairs'):
from .AcPairs import AcPairsCls
self._acPairs = AcPairsCls(self._core, self._cmd_group)
return self._acPairs
@property
def bandwidth(self):
"""
| Commands in total: 8
| Subgroups: 6
| Direct child commands: 0
"""
if not hasattr(self, '_bandwidth'):
from .Bandwidth import BandwidthCls
self._bandwidth = BandwidthCls(self._core, self._cmd_group)
return self._bandwidth
@property
def mode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_mode'):
from .Mode import ModeCls
self._mode = ModeCls(self._core, self._cmd_group)
return self._mode
@property
def reference(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_reference'):
from .Reference import ReferenceCls
self._reference = ReferenceCls(self._core, self._cmd_group)
return self._reference
@property
def sbcount(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_sbcount'):
from .Sbcount import SbcountCls
self._sbcount = SbcountCls(self._core, self._cmd_group)
return self._sbcount
@property
def sblock(self):
"""
| Commands in total: 7
| Subgroups: 7
| Direct child commands: 0
"""
if not hasattr(self, '_sblock'):
from .Sblock import SblockCls
self._sblock = SblockCls(self._core, self._cmd_group)
return self._sblock
@property
def agChannels(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_agChannels'):
from .AgChannels import AgChannelsCls
self._agChannels = AgChannelsCls(self._core, self._cmd_group)
return self._agChannels
@property
def gap(self):
"""
| Commands in total: 4
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_gap'):
from .Gap import GapCls
self._gap = GapCls(self._core, self._cmd_group)
return self._gap
[docs]
def preset(self, measurement: enums.PowerMeasFunction) -> None:
"""
``[SENSe]:POWer:ACHannel:PRESet`` \n
Snippet: ``driver.sense.power.achannel.preset(measurement = enums.PowerMeasFunction.ACPower)`` \n
Determines the ideal span, bandwidths and detector for the current power measurement. To get a valid result, you have to
perform a complete measurement with synchronization to the end of the measurement before reading out the result. This is
only possible for single sweep mode. See also method ``RsFsw.applications.k10Xlte.initiate.continuous.set()`` .
:param measurement: ACPower | MCACpower ACLR measurement CPOWer channel power measurement OBANdwidth | OBWidth Occupied bandwidth measurement CN Carrier to noise ratio CN0 Carrier to noise ration referenced to a 1 Hz bandwidth
"""
param = Conversions.enum_scalar_to_str(measurement, enums.PowerMeasFunction)
self._core.io.write(f'SENSe:POWer:ACHannel:PRESet {param}')
def clone(self) -> 'AchannelCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = AchannelCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group