Source code for RsCmwGprfMeas.Implementations.Configure.Spectrum.ZeroSpan.Vbw

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class VbwCls: """Vbw commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("vbw", core, parent)
[docs] def get_auto(self) -> bool: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW:AUTO \n Snippet: value: bool = driver.configure.spectrum.zeroSpan.vbw.get_auto() \n Enables or disables the automatic mode for the VBW in zero span mode. \n :return: vbw_auto: OFF | ON """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, vbw_auto: bool) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW:AUTO \n Snippet: driver.configure.spectrum.zeroSpan.vbw.set_auto(vbw_auto = False) \n Enables or disables the automatic mode for the VBW in zero span mode. \n :param vbw_auto: OFF | ON """ param = Conversions.bool_to_str(vbw_auto) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW:AUTO {param}')
[docs] def get_value(self) -> float or bool: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW \n Snippet: value: float or bool = driver.configure.spectrum.zeroSpan.vbw.get_value() \n Configures the video bandwidth (VBW) for the zero span mode. Setting this value is only possible if the automatic mode is off. \n :return: vbw: (float or boolean) numeric | OFF Only certain values can be configured, see Table 'Supported values'. Other values are rounded to the next allowed value. Range: 10 Hz to 10 MHz, Unit: Hz """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW?') return Conversions.str_to_float_or_bool(response)
[docs] def set_value(self, vbw: float or bool) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW \n Snippet: driver.configure.spectrum.zeroSpan.vbw.set_value(vbw = 1.0) \n Configures the video bandwidth (VBW) for the zero span mode. Setting this value is only possible if the automatic mode is off. \n :param vbw: (float or boolean) numeric | OFF Only certain values can be configured, see Table 'Supported values'. Other values are rounded to the next allowed value. Range: 10 Hz to 10 MHz, Unit: Hz """ param = Conversions.decimal_or_bool_value_to_str(vbw) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:ZSPan:VBW {param}')