from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.Utilities import trim_str_response
from ....Internal.ArgSingleList import ArgSingleList
from ....Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ZdiagramCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("zdiagram", core, parent)
[docs]
def set(self, search: str, diagram: str, zoom_diagram: str) -> None:
"""
``SEARch:GATE:ZDIagram`` \n
Snippet: ``driver.search.gate.zdiagram.set(search = 'abc', diagram = 'abc', zoom_diagram = 'abc')`` \n
Selects the zoom to which the gate area is set if method ``RsRtx.search.gate.zcoupling.set()`` is set to ON.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('diagram', diagram, DataType.String), ArgSingle('zoom_diagram', zoom_diagram, DataType.String))
self._core.io.write_with_opc(f'SEARch:GATE:ZDIagram {param}'.rstrip())
[docs]
def get(self, search: str, diagram: str) -> str:
"""
``SEARch:GATE:ZDIagram`` \n
Snippet: ``value: str = driver.search.gate.zdiagram.get(search = 'abc', diagram = 'abc')`` \n
Selects the zoom to which the gate area is set if method ``RsRtx.search.gate.zcoupling.set()`` is set to ON.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('diagram', diagram, DataType.String))
response = self._core.io.query_str_with_opc(f'SEARch:GATE:ZDIagram? {param}'.rstrip())
return trim_str_response(response)