Source code for RsCmwGprfGen.Implementations.Source.Sequencer.ListPy.Spath.Usage

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.ArgSingleList import ArgSingleList
from .......Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class UsageCls: """Usage commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("usage", core, parent) @property def bench(self): """bench commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_bench'): from .Bench import BenchCls self._bench = BenchCls(self._core, self._cmd_group) return self._bench
[docs] def set(self, index: float, enable: List[bool]) -> None: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:SPATh:USAGe \n Snippet: driver.source.sequencer.listPy.spath.usage.set(index = 1.0, enable = [True, False, True]) \n No command help available \n :param index: No help available :param enable: No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('index', index, DataType.Float), ArgSingle.as_open_list('enable', enable, DataType.BooleanList, None)) self._core.io.write(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:SPATh:USAGe {param}'.rstrip())
[docs] def get(self, index: float) -> List[bool]: """SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:SPATh:USAGe \n Snippet: value: List[bool] = driver.source.sequencer.listPy.spath.usage.get(index = 1.0) \n No command help available \n :param index: No help available :return: enable: No help available""" param = Conversions.decimal_value_to_str(index) response = self._core.io.query_str(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:LIST:SPATh:USAGe? {param}') return Conversions.str_to_bool_list(response)
def clone(self) -> 'UsageCls': """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 = UsageCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group