Source code for RsCmwBluetoothMeas.Implementations.Configure.MultiEval.Brate.FilterPy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class FilterPyCls: """FilterPy commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("filterPy", core, parent) # noinspection PyTypeChecker
[docs] def get_bandwidth(self) -> enums.FilterWidth: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:BRATe:FILTer:BWIDth \n Snippet: value: enums.FilterWidth = driver.configure.multiEval.brate.filterPy.get_bandwidth() \n Selects the filter bandwidth for BR measurements. \n :return: filter_bandwidth: NARRow | WIDE NARRow: Narrow-band filter WIDE: Wide-band filter """ response = self._core.io.query_str('CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:BRATe:FILTer:BWIDth?') return Conversions.str_to_scalar_enum(response, enums.FilterWidth)
[docs] def set_bandwidth(self, filter_bandwidth: enums.FilterWidth) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:BRATe:FILTer:BWIDth \n Snippet: driver.configure.multiEval.brate.filterPy.set_bandwidth(filter_bandwidth = enums.FilterWidth.NARRow) \n Selects the filter bandwidth for BR measurements. \n :param filter_bandwidth: NARRow | WIDE NARRow: Narrow-band filter WIDE: Wide-band filter """ param = Conversions.enum_scalar_to_str(filter_bandwidth, enums.FilterWidth) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:BRATe:FILTer:BWIDth {param}')