from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ResultCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("result", core, parent)
[docs]
def set(self, result_file: str) -> None:
"""
``[SENSe]:ADJust:NCANcel:FILE:RESult`` \n
Snippet: ``driver.sense.adjust.ncancel.file.result.set(result_file = 'abc')`` \n
Exports the I/Q data with the analyzer noise removed to a file.
Prerequisites for this command: \n
- Turn on I/Q noise cancellation. (See method ``RsFsw.sense.adjust.ncancel.start()`` ) .
:param result_file: String containing the path and name of the file. The specified path must exist already. The file extension must be .iq.tar.
"""
param = Conversions.value_to_quoted_str(result_file)
self._core.io.write(f'SENSe:ADJust:NCANcel:FILE:RESult {param}')
[docs]
def get(self) -> str:
"""
``[SENSe]:ADJust:NCANcel:FILE:RESult`` \n
Snippet: ``value: str = driver.sense.adjust.ncancel.file.result.get()`` \n
Exports the I/Q data with the analyzer noise removed to a file.
Prerequisites for this command: \n
- Turn on I/Q noise cancellation. (See method ``RsFsw.sense.adjust.ncancel.start()`` ) .
"""
response = self._core.io.query_str(f'SENSe:ADJust:NCANcel:FILE:RESult?')
return trim_str_response(response)