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
class StepCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("step", core, parent)
[docs]
def set(self, name: str, state: bool) -> None:
"""
``CALibration<HW>:FREQuency:CONVerter:EXTernal:SELected:STEP`` \n
Snippet: ``driver.calibration.frequency.converter.external.selected.step.set(name = 'abc', state = False)`` \n
No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('name', name, DataType.String), ArgSingle('state', state, DataType.Boolean))
self._core.io.write(f'CALibration<HwInstance>:FREQuency:CONVerter:EXTernal:SELected:STEP {param}'.rstrip())
[docs]
def get(self) -> bool:
"""
``CALibration<HW>:FREQuency:CONVerter:EXTernal:SELected:STEP`` \n
Snippet: ``value: bool = driver.calibration.frequency.converter.external.selected.step.get()`` \n
No help available
"""
response = self._core.io.query_str(f'CALibration<HwInstance>:FREQuency:CONVerter:EXTernal:SELected:STEP?')
return Conversions.str_to_bool(response)