Source code for RsSmbv.Implementations.Calibration.Roscillator.Data

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DataCls: """Data commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("data", core, parent) # noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.CalDataMode: """SCPI: CALibration:ROSCillator:DATA:MODE \n Snippet: value: enums.CalDataMode = driver.calibration.roscillator.data.get_mode() \n No command help available \n :return: mode: No help available """ response = self._core.io.query_str('CALibration:ROSCillator:DATA:MODE?') return Conversions.str_to_scalar_enum(response, enums.CalDataMode)
[docs] def set_mode(self, mode: enums.CalDataMode) -> None: """SCPI: CALibration:ROSCillator:DATA:MODE \n Snippet: driver.calibration.roscillator.data.set_mode(mode = enums.CalDataMode.CUSTomer) \n No command help available \n :param mode: No help available """ param = Conversions.enum_scalar_to_str(mode, enums.CalDataMode) self._core.io.write(f'CALibration:ROSCillator:DATA:MODE {param}')
[docs] def get_value(self) -> int: """SCPI: CALibration:ROSCillator:[DATA] \n Snippet: value: int = driver.calibration.roscillator.data.get_value() \n No command help available \n :return: data: No help available """ response = self._core.io.query_str('CALibration:ROSCillator:DATA?') return Conversions.str_to_int(response)
[docs] def set_value(self, data: int) -> None: """SCPI: CALibration:ROSCillator:[DATA] \n Snippet: driver.calibration.roscillator.data.set_value(data = 1) \n No command help available \n :param data: No help available """ param = Conversions.decimal_value_to_str(data) self._core.io.write(f'CALibration:ROSCillator:DATA {param}')