Source code for RsCmwWlanMeas.Implementations.Route.Scenario.Tmimo

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TmimoCls: """Tmimo commands group definition. 1 total commands, 0 Subgroups, 1 group commands Repeated Capability: TrueMimoPath, default value after init: TrueMimoPath.Count1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tmimo", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_trueMimoPath_get', 'repcap_trueMimoPath_set', repcap.TrueMimoPath.Count1) def repcap_trueMimoPath_set(self, trueMimoPath: repcap.TrueMimoPath) -> None: """Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to TrueMimoPath.Default Default value after init: TrueMimoPath.Count1""" self._cmd_group.set_repcap_enum_value(trueMimoPath) def repcap_trueMimoPath_get(self) -> repcap.TrueMimoPath: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value()
[docs] def set(self, trueMimoPath=repcap.TrueMimoPath.Default) -> None: """SCPI: ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo<PathCount> \n Snippet: driver.route.scenario.tmimo.set(trueMimoPath = repcap.TrueMimoPath.Default) \n Selects the number of paths for the true MIMO scenario via <PathCount>. The connectors are configurable via CONFigure:WLAN:MEAS<i>:RFSettings:ANTenna<n>. \n :param trueMimoPath: optional repeated capability selector. Default value: Count1 (settable in the interface 'Tmimo') """ trueMimoPath_cmd_val = self._cmd_group.get_repcap_cmd_value(trueMimoPath, repcap.TrueMimoPath) self._core.io.write(f'ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo{trueMimoPath_cmd_val}')
[docs] def set_with_opc(self, trueMimoPath=repcap.TrueMimoPath.Default, opc_timeout_ms: int = -1) -> None: trueMimoPath_cmd_val = self._cmd_group.get_repcap_cmd_value(trueMimoPath, repcap.TrueMimoPath) """SCPI: ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo<PathCount> \n Snippet: driver.route.scenario.tmimo.set_with_opc(trueMimoPath = repcap.TrueMimoPath.Default) \n Selects the number of paths for the true MIMO scenario via <PathCount>. The connectors are configurable via CONFigure:WLAN:MEAS<i>:RFSettings:ANTenna<n>. \n Same as set, but waits for the operation to complete before continuing further. Use the RsCmwWlanMeas.utilities.opc_timeout_set() to set the timeout value. \n :param trueMimoPath: optional repeated capability selector. Default value: Count1 (settable in the interface 'Tmimo') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.""" self._core.io.write_with_opc(f'ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo{trueMimoPath_cmd_val}', opc_timeout_ms)
# noinspection PyTypeChecker
[docs] def get(self, trueMimoPath=repcap.TrueMimoPath.Default) -> enums.GuiScenario: """SCPI: ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo<PathCount> \n Snippet: value: enums.GuiScenario = driver.route.scenario.tmimo.get(trueMimoPath = repcap.TrueMimoPath.Default) \n Selects the number of paths for the true MIMO scenario via <PathCount>. The connectors are configurable via CONFigure:WLAN:MEAS<i>:RFSettings:ANTenna<n>. \n :param trueMimoPath: optional repeated capability selector. Default value: Count1 (settable in the interface 'Tmimo') :return: gui_scenario: TMIMo Returns the active scenario (true MIMO) .""" trueMimoPath_cmd_val = self._cmd_group.get_repcap_cmd_value(trueMimoPath, repcap.TrueMimoPath) response = self._core.io.query_str(f'ROUTe:WLAN:MEASurement<Instance>:SCENario:TMIMo{trueMimoPath_cmd_val}?') return Conversions.str_to_scalar_enum(response, enums.GuiScenario)
def clone(self) -> 'TmimoCls': """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 = TmimoCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group