Source code for RsSmbv.Implementations.System.Dexchange.Template.Predefined

from typing import List

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 PredefinedCls: """Predefined commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("predefined", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: SYSTem:DEXChange:TEMPlate:PREDefined:CATalog \n Snippet: value: List[str] = driver.system.dexchange.template.predefined.get_catalog() \n No command help available \n :return: catalog: No help available """ response = self._core.io.query_str('SYSTem:DEXChange:TEMPlate:PREDefined:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_select(self) -> str: """SCPI: SYSTem:DEXChange:TEMPlate:PREDefined:SELect \n Snippet: value: str = driver.system.dexchange.template.predefined.get_select() \n No command help available \n :return: filename: No help available """ response = self._core.io.query_str('SYSTem:DEXChange:TEMPlate:PREDefined:SELect?') return trim_str_response(response)
[docs] def set_select(self, filename: str) -> None: """SCPI: SYSTem:DEXChange:TEMPlate:PREDefined:SELect \n Snippet: driver.system.dexchange.template.predefined.set_select(filename = 'abc') \n No command help available \n :param filename: No help available """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SYSTem:DEXChange:TEMPlate:PREDefined:SELect {param}')