from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ErrorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("error", core, parent)
# noinspection PyTypeChecker
[docs]
class GetStruct(StructBase):
"""
Response structure. Fields: \n
- 1 Error_Number: float: numeric value Error number
- 2 Error_Text: str: Error description.
"""
__meta_args_list = [
ArgStruct.scalar_float('Error_Number'),
ArgStruct.scalar_str('Error_Text')]
def __init__(self):
StructBase.__init__(self, self)
self.Error_Number: float = None
self.Error_Text: str = None
[docs]
def get(self) -> GetStruct:
"""
``[SENSe]:ADJust:NCANcel:ERRor`` \n
Snippet: ``value: GetStruct = driver.sense.adjust.ncancel.error.get()`` \n
Returns any errors that occur during the I/Q noise cancellation process. See also 'Troubleshooting I/Q noise
cancellation'.
:return: structure: for return value, see the help for GetStruct structure arguments.
"""
return self._core.io.query_struct(f'SENSe:ADJust:NCANcel:ERRor?', self.__class__.GetStruct())