Source code for RsSmbv.Implementations.Calibration.Level.Amplifier.Stage

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class StageCls: """Stage commands group definition. 4 total commands, 0 Subgroups, 4 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("stage", core, parent)
[docs] def get_frequency(self) -> int: """SCPI: CALibration:LEVel:AMPLifier:STAGe:FREQuenz \n Snippet: value: int = driver.calibration.level.amplifier.stage.get_frequency() \n No command help available \n :return: freq_stage: No help available """ response = self._core.io.query_str('CALibration:LEVel:AMPLifier:STAGe:FREQuenz?') return Conversions.str_to_int(response)
[docs] def set_frequency(self, freq_stage: int) -> None: """SCPI: CALibration:LEVel:AMPLifier:STAGe:FREQuenz \n Snippet: driver.calibration.level.amplifier.stage.set_frequency(freq_stage = 1) \n No command help available \n :param freq_stage: No help available """ param = Conversions.decimal_value_to_str(freq_stage) self._core.io.write(f'CALibration:LEVel:AMPLifier:STAGe:FREQuenz {param}')
# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.CalPowAmpStagMode: """SCPI: CALibration:LEVel:AMPLifier:STAGe:MODE \n Snippet: value: enums.CalPowAmpStagMode = driver.calibration.level.amplifier.stage.get_mode() \n No command help available \n :return: mode: No help available """ response = self._core.io.query_str('CALibration:LEVel:AMPLifier:STAGe:MODE?') return Conversions.str_to_scalar_enum(response, enums.CalPowAmpStagMode)
[docs] def set_mode(self, mode: enums.CalPowAmpStagMode) -> None: """SCPI: CALibration:LEVel:AMPLifier:STAGe:MODE \n Snippet: driver.calibration.level.amplifier.stage.set_mode(mode = enums.CalPowAmpStagMode.AUTO) \n No command help available \n :param mode: No help available """ param = Conversions.enum_scalar_to_str(mode, enums.CalPowAmpStagMode) self._core.io.write(f'CALibration:LEVel:AMPLifier:STAGe:MODE {param}')
[docs] def get_sub(self) -> int: """SCPI: CALibration:LEVel:AMPLifier:STAGe:SUB \n Snippet: value: int = driver.calibration.level.amplifier.stage.get_sub() \n No command help available \n :return: sub_stage: No help available """ response = self._core.io.query_str('CALibration:LEVel:AMPLifier:STAGe:SUB?') return Conversions.str_to_int(response)
[docs] def set_sub(self, sub_stage: int) -> None: """SCPI: CALibration:LEVel:AMPLifier:STAGe:SUB \n Snippet: driver.calibration.level.amplifier.stage.set_sub(sub_stage = 1) \n No command help available \n :param sub_stage: No help available """ param = Conversions.decimal_value_to_str(sub_stage) self._core.io.write(f'CALibration:LEVel:AMPLifier:STAGe:SUB {param}')
[docs] def get_value(self) -> int: """SCPI: CALibration:LEVel:AMPLifier:STAGe \n Snippet: value: int = driver.calibration.level.amplifier.stage.get_value() \n No command help available \n :return: stage: No help available """ response = self._core.io.query_str('CALibration:LEVel:AMPLifier:STAGe?') return Conversions.str_to_int(response)
[docs] def set_value(self, stage: int) -> None: """SCPI: CALibration:LEVel:AMPLifier:STAGe \n Snippet: driver.calibration.level.amplifier.stage.set_value(stage = 1) \n No command help available \n :param stage: No help available """ param = Conversions.decimal_value_to_str(stage) self._core.io.write(f'CALibration:LEVel:AMPLifier:STAGe {param}')