from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RemoteCls:
"""
| Commands in total: 10
| Subgroups: 7
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("remote", core, parent)
@property
def connect(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_connect'):
from .Connect import ConnectCls
self._connect = ConnectCls(self._core, self._cmd_group)
return self._connect
@property
def detect(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_detect'):
from .Detect import DetectCls
self._detect = DetectCls(self._core, self._cmd_group)
return self._detect
@property
def disconnect(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_disconnect'):
from .Disconnect import DisconnectCls
self._disconnect = DisconnectCls(self._core, self._cmd_group)
return self._disconnect
@property
def iconnect(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_iconnect'):
from .Iconnect import IconnectCls
self._iconnect = IconnectCls(self._core, self._cmd_group)
return self._iconnect
@property
def info(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_info'):
from .Info import InfoCls
self._info = InfoCls(self._core, self._cmd_group)
return self._info
@property
def initialization(self):
"""
| Commands in total: 3
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_initialization'):
from .Initialization import InitializationCls
self._initialization = InitializationCls(self._core, self._cmd_group)
return self._initialization
@property
def iselect(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_iselect'):
from .Iselect import IselectCls
self._iselect = IselectCls(self._core, self._cmd_group)
return self._iselect
[docs]
def send(self, send_scpi_command: str, iqConnector=repcap.IqConnector.Default) -> None:
"""
``SCONfiguration:EXTernal:BBMM<CH>:REMote:SEND`` \n
Snippet: ``driver.sconfiguration.external.bbmm.remote.send(send_scpi_command = 'abc', iqConnector = repcap.IqConnector.Default)`` \n
Allows you to send SCPI commands to the RF instruments connected to the R&S SMW200A.
:param send_scpi_command: 'SCPI syntax' String containing an SCPI command (query or setting)
:param iqConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bbmm')
"""
param = Conversions.value_to_quoted_str(send_scpi_command)
iqConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(iqConnector, repcap.IqConnector)
self._core.io.write(f'SCONfiguration:EXTernal:BBMM{iqConnector_cmd_val}:REMote:SEND {param}')
def clone(self) -> 'RemoteCls':
"""
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 = RemoteCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group