Source code for RsCMPX_Gprf.Implementations.Configure.Gprf.Measurement.Spectrum.ZeroSpan.Rbw

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class RbwCls: """Rbw commands group definition. 3 total commands, 0 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("rbw", core, parent) # noinspection PyTypeChecker
[docs] def get_type_py(self) -> enums.RbwFilterType: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:TYPE \n Snippet: value: enums.RbwFilterType = driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.get_type_py() \n No command help available \n :return: rbw_type: No help available """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:TYPE?') return Conversions.str_to_scalar_enum(response, enums.RbwFilterType)
[docs] def set_type_py(self, rbw_type: enums.RbwFilterType) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:TYPE \n Snippet: driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.set_type_py(rbw_type = enums.RbwFilterType.BANDpass) \n No command help available \n :param rbw_type: No help available """ param = Conversions.enum_scalar_to_str(rbw_type, enums.RbwFilterType) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:TYPE {param}')
[docs] def get_bandpass(self) -> float: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:BANDpass \n Snippet: value: float = driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.get_bandpass() \n No command help available \n :return: rbw_bandpass: No help available """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:BANDpass?') return Conversions.str_to_float(response)
[docs] def set_bandpass(self, rbw_bandpass: float) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:BANDpass \n Snippet: driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.set_bandpass(rbw_bandpass = 1.0) \n No command help available \n :param rbw_bandpass: No help available """ param = Conversions.decimal_value_to_str(rbw_bandpass) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:BANDpass {param}')
[docs] def get_gauss(self) -> float: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:GAUSs \n Snippet: value: float = driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.get_gauss() \n No command help available \n :return: rbw: No help available """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:GAUSs?') return Conversions.str_to_float(response)
[docs] def set_gauss(self, rbw: float) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:GAUSs \n Snippet: driver.configure.gprf.measurement.spectrum.zeroSpan.rbw.set_gauss(rbw = 1.0) \n No command help available \n :param rbw: No help available """ param = Conversions.decimal_value_to_str(rbw) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:RBW:GAUSs {param}')