Source code for RsCMPX_Gprf.Implementations.Source.Gprf.Generator.ListPy.Increment

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 IncrementCls: """Increment commands group definition. 4 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("increment", core, parent) @property def enabling(self): """enabling commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_enabling'): from .Enabling import EnablingCls self._enabling = EnablingCls(self._core, self._cmd_group) return self._enabling
[docs] def get_catalog(self) -> List[str]: """SCPI: SOURce:GPRF:GENerator<Instance>:LIST:INCRement:CATalog \n Snippet: value: List[str] = driver.source.gprf.generator.listPy.increment.get_catalog() \n No command help available \n :return: list_incr_srcs: No help available """ response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:LIST:INCRement:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_value(self) -> str: """SCPI: SOURce:GPRF:GENerator<Instance>:LIST:INCRement \n Snippet: value: str = driver.source.gprf.generator.listPy.increment.get_value() \n No command help available \n :return: list_incr_src: No help available """ response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:LIST:INCRement?') return trim_str_response(response)
[docs] def set_value(self, list_incr_src: str) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:LIST:INCRement \n Snippet: driver.source.gprf.generator.listPy.increment.set_value(list_incr_src = 'abc') \n No command help available \n :param list_incr_src: No help available """ param = Conversions.value_to_quoted_str(list_incr_src) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:LIST:INCRement {param}')
def clone(self) -> 'IncrementCls': """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 = IncrementCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group