Source code for RsCMPX_Gprf.Implementations.Configure.Tenvironment.Spath.Info

from typing import List

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Types import DataType
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class InfoCls: """Info commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("info", core, parent) # noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Name_Antenna: str: No parameter help available - Name_Connector: str: No parameter help available - Signal_Direction: enums.SignalDirection: No parameter help available - No_Corr_Table_Rx: float: No parameter help available - Corr_Table_Rx: str: No parameter help available - No_Corr_Table_Tx: float: No parameter help available - Corr_Table_Tx: List[str]: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_str('Name_Antenna'), ArgStruct.scalar_str('Name_Connector'), ArgStruct.scalar_enum('Signal_Direction', enums.SignalDirection), ArgStruct.scalar_float('No_Corr_Table_Rx'), ArgStruct.scalar_str('Corr_Table_Rx'), ArgStruct.scalar_float('No_Corr_Table_Tx'), ArgStruct('Corr_Table_Tx', DataType.StringList, None, False, True, 1)] def __init__(self): StructBase.__init__(self, self) self.Name_Antenna: str = None self.Name_Connector: str = None self.Signal_Direction: enums.SignalDirection = None self.No_Corr_Table_Rx: float = None self.Corr_Table_Rx: str = None self.No_Corr_Table_Tx: float = None self.Corr_Table_Tx: List[str] = None
[docs] def get(self, name_spath: str) -> GetStruct: """SCPI: [CONFigure]:TENVironment:SPATh:INFO \n Snippet: value: GetStruct = driver.configure.tenvironment.spath.info.get(name_spath = 'abc') \n No command help available \n :param name_spath: No help available :return: structure: for return value, see the help for GetStruct structure arguments.""" param = Conversions.value_to_quoted_str(name_spath) return self._core.io.query_struct(f'CONFigure:TENVironment:SPATh:INFO? {param}', self.__class__.GetStruct())