Source code for RsCmwGprfGen.Implementations.Route.Scenario.Salone

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
from .... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SaloneCls: """Salone commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("salone", core, parent)
[docs] def set(self, tx_connector: enums.TxConnector, rf_converter: enums.TxConverter) -> None: """SCPI: ROUTe:GPRF:GENerator<Instance>:SCENario:SALone \n Snippet: driver.route.scenario.salone.set(tx_connector = enums.TxConnector.I12O, rf_converter = enums.TxConverter.ITX1) \n Selects the output path for the generated RF signal. For possible connector and converter values, see 'Values for RF path selection'. \n :param tx_connector: RF connector for the output path :param rf_converter: TX module for the output path """ param = ArgSingleList().compose_cmd_string(ArgSingle('tx_connector', tx_connector, DataType.Enum, enums.TxConnector), ArgSingle('rf_converter', rf_converter, DataType.Enum, enums.TxConverter)) self._core.io.write(f'ROUTe:GPRF:GENerator<Instance>:SCENario:SALone {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class SaloneStruct(StructBase): """Response structure. Fields: \n - Tx_Connector: enums.TxConnector: RF connector for the output path - Rf_Converter: enums.TxConverter: TX module for the output path""" __meta_args_list = [ ArgStruct.scalar_enum('Tx_Connector', enums.TxConnector), ArgStruct.scalar_enum('Rf_Converter', enums.TxConverter)] def __init__(self): StructBase.__init__(self, self) self.Tx_Connector: enums.TxConnector = None self.Rf_Converter: enums.TxConverter = None
[docs] def get(self) -> SaloneStruct: """SCPI: ROUTe:GPRF:GENerator<Instance>:SCENario:SALone \n Snippet: value: SaloneStruct = driver.route.scenario.salone.get() \n Selects the output path for the generated RF signal. For possible connector and converter values, see 'Values for RF path selection'. \n :return: structure: for return value, see the help for SaloneStruct structure arguments.""" return self._core.io.query_struct(f'ROUTe:GPRF:GENerator<Instance>:SCENario:SALone?', self.__class__.SaloneStruct())