Source code for RsCMPX_Base.Implementations.Calibration.Base.Latest.Specific

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.StructBase import StructBase
from .....Internal.ArgStruct import ArgStruct
from ..... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SpecificCls: """Specific commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("specific", core, parent) # noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Date: str: No parameter help available - Time: str: No parameter help available""" __meta_args_list = [ ArgStruct.scalar_str('Date'), ArgStruct.scalar_str('Time')] def __init__(self): StructBase.__init__(self, self) self.Date: str = None self.Time: str = None
[docs] def get(self, mode: enums.Type) -> GetStruct: """SCPI: CALibration:BASE:LATest:SPECific \n Snippet: value: GetStruct = driver.calibration.base.latest.specific.get(mode = enums.Type.CALibration) \n No command help available \n :param mode: No help available :return: structure: for return value, see the help for GetStruct structure arguments.""" param = Conversions.enum_scalar_to_str(mode, enums.Type) return self._core.io.query_struct(f'CALibration:BASE:LATest:SPECific? {param}', self.__class__.GetStruct())