Source code for RsCmwWlanMeas.Implementations.Configure.Isignal.Tdata

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 TdataCls: """Tdata commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tdata", core, parent) @property def file(self): """file commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_file'): from .File import FileCls self._file = FileCls(self._core, self._cmd_group) return self._file
[docs] def get_value(self) -> str: """SCPI: CONFigure:WLAN:MEASurement<instance>:ISIGnal:TDATa \n Snippet: value: str = driver.configure.isignal.tdata.get_value() \n Specifies the training data source to be used as the reference signal for CMIMO measurements. \n :return: filename: 'no data' | 'Internal' | 'file name' 'no data': Use no training data. 'Internal': Use in-memory data, acquired during preceding training mode runs. In-memory data must be available. 'file name': Use the training data file with the specified name, in the directory @USERDATA/MIMOData. """ response = self._core.io.query_str('CONFigure:WLAN:MEASurement<Instance>:ISIGnal:TDATa?') return trim_str_response(response)
[docs] def set_value(self, filename: str) -> None: """SCPI: CONFigure:WLAN:MEASurement<instance>:ISIGnal:TDATa \n Snippet: driver.configure.isignal.tdata.set_value(filename = 'abc') \n Specifies the training data source to be used as the reference signal for CMIMO measurements. \n :param filename: 'no data' | 'Internal' | 'file name' 'no data': Use no training data. 'Internal': Use in-memory data, acquired during preceding training mode runs. In-memory data must be available. 'file name': Use the training data file with the specified name, in the directory @USERDATA/MIMOData. """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:ISIGnal:TDATa {param}')
def clone(self) -> 'TdataCls': """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 = TdataCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group