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 ReferenceCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("reference", core, parent)
[docs]
def set(self, ref_file: str) -> None:
"""
``[SENSe]:ADJust:NCANcel:FILE:REFerence`` \n
Snippet: ``driver.sense.adjust.ncancel.file.reference.set(ref_file = 'abc')`` \n
Reference signal to be used by the I/Q noise cancellation process.
:param ref_file: string Path and file name of the reference signal in .wv or .iq.tar format.
"""
param = Conversions.value_to_quoted_str(ref_file)
self._core.io.write(f'SENSe:ADJust:NCANcel:FILE:REFerence {param}')
[docs]
def get(self) -> str:
"""
``[SENSe]:ADJust:NCANcel:FILE:REFerence`` \n
Snippet: ``value: str = driver.sense.adjust.ncancel.file.reference.get()`` \n
Reference signal to be used by the I/Q noise cancellation process.
:return: ref_file: string Path and file name of the reference signal in .wv or .iq.tar format.
"""
response = self._core.io.query_str(f'SENSe:ADJust:NCANcel:FILE:REFerence?')
return trim_str_response(response)