Source code for RsCMPX_NiotMeas.Implementations.Configure.NiotMeas

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class NiotMeasCls: """NiotMeas commands group definition. 95 total commands, 3 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("niotMeas", core, parent) @property def rfSettings(self): """rfSettings commands group. 0 Sub-classes, 6 commands.""" if not hasattr(self, '_rfSettings'): from .RfSettings import RfSettingsCls self._rfSettings = RfSettingsCls(self._core, self._cmd_group) return self._rfSettings @property def multiEval(self): """multiEval commands group. 8 Sub-classes, 16 commands.""" if not hasattr(self, '_multiEval'): from .MultiEval import MultiEvalCls self._multiEval = MultiEvalCls(self._core, self._cmd_group) return self._multiEval @property def prach(self): """prach commands group. 4 Sub-classes, 7 commands.""" if not hasattr(self, '_prach'): from .Prach import PrachCls self._prach = PrachCls(self._core, self._cmd_group) return self._prach # noinspection PyTypeChecker
[docs] def get_band(self) -> enums.Band: """SCPI: CONFigure:NIOT:MEASurement<Instance>:BAND \n Snippet: value: enums.Band = driver.configure.niotMeas.get_band() \n Selects the operating band (OB) . \n :return: band: No help available """ response = self._core.io.query_str('CONFigure:NIOT:MEASurement<Instance>:BAND?') return Conversions.str_to_scalar_enum(response, enums.Band)
[docs] def set_band(self, band: enums.Band) -> None: """SCPI: CONFigure:NIOT:MEASurement<Instance>:BAND \n Snippet: driver.configure.niotMeas.set_band(band = enums.Band.OB1) \n Selects the operating band (OB) . \n :param band: No help available """ param = Conversions.enum_scalar_to_str(band, enums.Band) self._core.io.write(f'CONFigure:NIOT:MEASurement<Instance>:BAND {param}')
def clone(self) -> 'NiotMeasCls': """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 = NiotMeasCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group