Source code for RsCMPX_Gprf.Implementations.Source.Gprf.Generator.Sequencer.RfSettings.Spath

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SpathCls: """Spath commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("spath", core, parent) # noinspection PyTypeChecker
[docs] def get_cset(self) -> enums.ParameterSetMode: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:RFSettings:SPATh:CSET \n Snippet: value: enums.ParameterSetMode = driver.source.gprf.generator.sequencer.rfSettings.spath.get_cset() \n Selects the scope of the RF connector configuration. \n :return: connector_set: - GLOBal: Use the same configuration for the entire sequencer list.Activate/deactivate the connectors via:CONFigure:GPRF:GENi:SPATh:USAGe orCONFigure:GPRF:GENi:SPATh:USAGe:BENChno - LIST: Configure the connectors per sequencer list entry.Activate/deactivate the connectors via:SOURce:GPRF:GENi:SEQuencer:LIST:SPATh:USAGe orSOURce:GPRF:GENi:SEQuencer:LIST:SPATh:USAGe:BENChno""" response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:SEQuencer:RFSettings:SPATh:CSET?') return Conversions.str_to_scalar_enum(response, enums.ParameterSetMode)
[docs] def set_cset(self, connector_set: enums.ParameterSetMode) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:RFSettings:SPATh:CSET \n Snippet: driver.source.gprf.generator.sequencer.rfSettings.spath.set_cset(connector_set = enums.ParameterSetMode.GLOBal) \n Selects the scope of the RF connector configuration. \n :param connector_set: - GLOBal: Use the same configuration for the entire sequencer list.Activate/deactivate the connectors via:CONFigure:GPRF:GENi:SPATh:USAGe orCONFigure:GPRF:GENi:SPATh:USAGe:BENChno - LIST: Configure the connectors per sequencer list entry.Activate/deactivate the connectors via:SOURce:GPRF:GENi:SEQuencer:LIST:SPATh:USAGe orSOURce:GPRF:GENi:SEQuencer:LIST:SPATh:USAGe:BENChno""" param = Conversions.enum_scalar_to_str(connector_set, enums.ParameterSetMode) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:RFSettings:SPATh:CSET {param}')