Source code for RsFsw.Implementations.Sense.Power.Achannel

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AchannelCls: """Achannel commands group definition. 64 total commands, 15 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("achannel", core, parent) @property def presetRefLevel(self): """presetRefLevel commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_presetRefLevel'): from .PresetRefLevel import PresetRefLevelCls self._presetRefLevel = PresetRefLevelCls(self._core, self._cmd_group) return self._presetRefLevel @property def ssetup(self): """ssetup commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_ssetup'): from .Ssetup import SsetupCls self._ssetup = SsetupCls(self._core, self._cmd_group) return self._ssetup @property def filterPy(self): """filterPy commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_filterPy'): from .FilterPy import FilterPyCls self._filterPy = FilterPyCls(self._core, self._cmd_group) return self._filterPy @property def spacing(self): """spacing commands group. 6 Sub-classes, 0 commands.""" if not hasattr(self, '_spacing'): from .Spacing import SpacingCls self._spacing = SpacingCls(self._core, self._cmd_group) return self._spacing @property def gchannel(self): """gchannel commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_gchannel'): from .Gchannel import GchannelCls self._gchannel = GchannelCls(self._core, self._cmd_group) return self._gchannel @property def name(self): """name commands group. 5 Sub-classes, 0 commands.""" if not hasattr(self, '_name'): from .Name import NameCls self._name = NameCls(self._core, self._cmd_group) return self._name @property def txChannel(self): """txChannel commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_txChannel'): from .TxChannel import TxChannelCls self._txChannel = TxChannelCls(self._core, self._cmd_group) return self._txChannel @property def acPairs(self): """acPairs commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_acPairs'): from .AcPairs import AcPairsCls self._acPairs = AcPairsCls(self._core, self._cmd_group) return self._acPairs @property def bandwidth(self): """bandwidth commands group. 6 Sub-classes, 0 commands.""" if not hasattr(self, '_bandwidth'): from .Bandwidth import BandwidthCls self._bandwidth = BandwidthCls(self._core, self._cmd_group) return self._bandwidth @property def mode(self): """mode commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_mode'): from .Mode import ModeCls self._mode = ModeCls(self._core, self._cmd_group) return self._mode @property def reference(self): """reference commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_reference'): from .Reference import ReferenceCls self._reference = ReferenceCls(self._core, self._cmd_group) return self._reference @property def sbcount(self): """sbcount commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_sbcount'): from .Sbcount import SbcountCls self._sbcount = SbcountCls(self._core, self._cmd_group) return self._sbcount @property def sblock(self): """sblock commands group. 7 Sub-classes, 0 commands.""" if not hasattr(self, '_sblock'): from .Sblock import SblockCls self._sblock = SblockCls(self._core, self._cmd_group) return self._sblock @property def agChannels(self): """agChannels commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_agChannels'): from .AgChannels import AgChannelsCls self._agChannels = AgChannelsCls(self._core, self._cmd_group) return self._agChannels @property def gap(self): """gap commands group. 3 Sub-classes, 0 commands.""" 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: """SCPI: [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.K10x_Lte.Initiate.Continuous.set. \n :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