from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ResultCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("result", core, parent)
[docs]
def get_modulation(self) -> bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:MODulation`` \n
Snippet: ``value: bool = driver.configure.nrSubMeas.srs.result.get_modulation()`` \n
Enables or disables the evaluation of modulation results in the SRS measurement.
:return: enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:MODulation?')
return Conversions.str_to_bool(response)
[docs]
def set_modulation(self, enable: bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:MODulation`` \n
Snippet: ``driver.configure.nrSubMeas.srs.result.set_modulation(enable = False)`` \n
Enables or disables the evaluation of modulation results in the SRS measurement.
:param enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:MODulation {param}')
[docs]
def get_pdynamics(self) -> bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PDYNamics`` \n
Snippet: ``value: bool = driver.configure.nrSubMeas.srs.result.get_pdynamics()`` \n
Enables or disables the evaluation of power dynamics results in the SRS measurement.
:return: enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PDYNamics?')
return Conversions.str_to_bool(response)
[docs]
def set_pdynamics(self, enable: bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PDYNamics`` \n
Snippet: ``driver.configure.nrSubMeas.srs.result.set_pdynamics(enable = False)`` \n
Enables or disables the evaluation of power dynamics results in the SRS measurement.
:param enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PDYNamics {param}')
[docs]
def get_pv_symbol(self) -> bool:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PVSYmbol`` \n
Snippet: ``value: bool = driver.configure.nrSubMeas.srs.result.get_pv_symbol()`` \n
Enables or disables the evaluation of power vs symbol results in the SRS measurement.
:return: enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PVSYmbol?')
return Conversions.str_to_bool(response)
[docs]
def set_pv_symbol(self, enable: bool) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PVSYmbol`` \n
Snippet: ``driver.configure.nrSubMeas.srs.result.set_pv_symbol(enable = False)`` \n
Enables or disables the evaluation of power vs symbol results in the SRS measurement.
:param enable: OFF: Do not evaluate the results. ON: Evaluate the results.
"""
param = Conversions.bool_to_str(enable)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:SRS:RESult:PVSYmbol {param}')