Source code for RsPulseSeq.Implementations.Antenna.Model.Plugin

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PluginCls: """Plugin commands group definition. 4 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("plugin", core, parent) @property def variable(self): """variable commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_variable'): from .Variable import VariableCls self._variable = VariableCls(self._core, self._cmd_group) return self._variable
[docs] def get_name(self) -> str: """SCPI: ANTenna:MODel:PLUGin:NAME \n Snippet: value: str = driver.antenna.model.plugin.get_name() \n No command help available \n :return: name: No help available """ response = self._core.io.query_str('ANTenna:MODel:PLUGin:NAME?') return trim_str_response(response)
[docs] def set_name(self, name: str) -> None: """SCPI: ANTenna:MODel:PLUGin:NAME \n Snippet: driver.antenna.model.plugin.set_name(name = 'abc') \n No command help available \n :param name: No help available """ param = Conversions.value_to_quoted_str(name) self._core.io.write(f'ANTenna:MODel:PLUGin:NAME {param}')
def clone(self) -> 'PluginCls': """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 = PluginCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group