from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DomainCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("domain", core, parent)
[docs]
def set(self, domain: enums.SyncDomain) -> None:
"""
``CONFigure:SYNC:DOMain`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.sync.domain.set(domain = enums.SyncDomain.IQDirect)`` \n
This command selects the synchronization method.
:param domain: IQDirect I/Q data for the reference signal is directly correlated with the reference and measured signal. IQPDiff Correlation on the phase differentiated I/Q data. MAGNitude Correlation on the magnitude of the I/Q data with no regard for phase information. TRIGger It is assumed that the capture is triggered at the start of the reference waveform.
"""
param = Conversions.enum_scalar_to_str(domain, enums.SyncDomain)
self._core.io.write(f'CONFigure:SYNC:DOMain {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.SyncDomain:
"""
``CONFigure:SYNC:DOMain`` \n
Snippet: ``value: enums.SyncDomain = driver.applications.k18AmplifierEt.configure.sync.domain.get()`` \n
This command selects the synchronization method.
:return: domain: IQDirect I/Q data for the reference signal is directly correlated with the reference and measured signal. IQPDiff Correlation on the phase differentiated I/Q data. MAGNitude Correlation on the magnitude of the I/Q data with no regard for phase information. TRIGger It is assumed that the capture is triggered at the start of the reference waveform.
"""
response = self._core.io.query_str(f'CONFigure:SYNC:DOMain?')
return Conversions.str_to_scalar_enum(response, enums.SyncDomain)