from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Types import DataType
from ......Internal.Utilities import trim_str_response
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
from ...... import repcap
# 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, diagram: str, zoom_diagram: str, math=repcap.Math.Default) -> None:
"""
``CALCulate:MATH<*>:FFT:GATE:ZDIagram`` \n
Snippet: ``driver.calculate.math.fft.gate.zdiagram.set(diagram = 'abc', zoom_diagram = 'abc', math = repcap.Math.Default)`` \n
No help available
:param math: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Math')
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('diagram', diagram, DataType.String), ArgSingle('zoom_diagram', zoom_diagram, DataType.String))
math_cmd_val = self._cmd_group.get_repcap_cmd_value(math, repcap.Math)
self._core.io.write_with_opc(f'CALCulate:MATH{math_cmd_val}:FFT:GATE:ZDIagram {param}'.rstrip())
[docs]
def get(self, diagram: str, math=repcap.Math.Default) -> str:
"""
``CALCulate:MATH<*>:FFT:GATE:ZDIagram`` \n
Snippet: ``value: str = driver.calculate.math.fft.gate.zdiagram.get(diagram = 'abc', math = repcap.Math.Default)`` \n
No help available
:param math: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Math')
"""
param = Conversions.value_to_quoted_str(diagram)
math_cmd_val = self._cmd_group.get_repcap_cmd_value(math, repcap.Math)
response = self._core.io.query_str_with_opc(f'CALCulate:MATH{math_cmd_val}:FFT:GATE:ZDIagram? {param}')
return trim_str_response(response)