Source code for RsSmcv.Implementations.Sconfiguration

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SconfigurationCls: """Sconfiguration commands group definition. 17 total commands, 5 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("sconfiguration", core, parent) @property def apply(self): """apply commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_apply'): from .Apply import ApplyCls self._apply = ApplyCls(self._core, self._cmd_group) return self._apply @property def baseband(self): """baseband commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_baseband'): from .Baseband import BasebandCls self._baseband = BasebandCls(self._core, self._cmd_group) return self._baseband @property def diq(self): """diq commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_diq'): from .Diq import DiqCls self._diq = DiqCls(self._core, self._cmd_group) return self._diq @property def multiInstrument(self): """multiInstrument commands group. 1 Sub-classes, 2 commands.""" if not hasattr(self, '_multiInstrument'): from .MultiInstrument import MultiInstrumentCls self._multiInstrument = MultiInstrumentCls(self._core, self._cmd_group) return self._multiInstrument @property def output(self): """output commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_output'): from .Output import OutputCls self._output = OutputCls(self._core, self._cmd_group) return self._output # noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.EmulSgtBbSystemConfiguration: """SCPI: SCONfiguration:MODE \n Snippet: value: enums.EmulSgtBbSystemConfiguration = driver.sconfiguration.get_mode() \n No command help available \n :return: configuration: No help available """ response = self._core.io.query_str('SCONfiguration:MODE?') return Conversions.str_to_scalar_enum(response, enums.EmulSgtBbSystemConfiguration)
[docs] def set_mode(self, configuration: enums.EmulSgtBbSystemConfiguration) -> None: """SCPI: SCONfiguration:MODE \n Snippet: driver.sconfiguration.set_mode(configuration = enums.EmulSgtBbSystemConfiguration.AFETracking) \n No command help available \n :param configuration: No help available """ param = Conversions.enum_scalar_to_str(configuration, enums.EmulSgtBbSystemConfiguration) self._core.io.write(f'SCONfiguration:MODE {param}')
[docs] def preset(self) -> None: """SCPI: SCONfiguration:PRESet \n Snippet: driver.sconfiguration.preset() \n No command help available \n """ self._core.io.write(f'SCONfiguration:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """SCPI: SCONfiguration:PRESet \n Snippet: driver.sconfiguration.preset_with_opc() \n No command help available \n Same as preset, but waits for the operation to complete before continuing further. Use the RsSmcv.utilities.opc_timeout_set() to set the timeout value. \n :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'SCONfiguration:PRESet', opc_timeout_ms)
def clone(self) -> 'SconfigurationCls': """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 = SconfigurationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group