Source code for RsSmbv.Implementations.Source.Bb.Wlnn.FilterPy.Osampling

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class OsamplingCls: """Osampling commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("osampling", core, parent)
[docs] def get_auto(self) -> bool: """SCPI: [SOURce<HW>]:BB:WLNN:FILTer:OSAMpling:AUTO \n Snippet: value: bool = driver.source.bb.wlnn.filterPy.osampling.get_auto() \n No command help available \n :return: auto: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:FILTer:OSAMpling:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, auto: bool) -> None: """SCPI: [SOURce<HW>]:BB:WLNN:FILTer:OSAMpling:AUTO \n Snippet: driver.source.bb.wlnn.filterPy.osampling.set_auto(auto = False) \n No command help available \n :param auto: No help available """ param = Conversions.bool_to_str(auto) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:FILTer:OSAMpling:AUTO {param}')
[docs] def get_value(self) -> int: """SCPI: [SOURce<HW>]:BB:WLNN:FILTer:OSAMpling \n Snippet: value: int = driver.source.bb.wlnn.filterPy.osampling.get_value() \n No command help available \n :return: osampling: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLNN:FILTer:OSAMpling?') return Conversions.str_to_int(response)
[docs] def set_value(self, osampling: int) -> None: """SCPI: [SOURce<HW>]:BB:WLNN:FILTer:OSAMpling \n Snippet: driver.source.bb.wlnn.filterPy.osampling.set_value(osampling = 1) \n No command help available \n :param osampling: No help available """ param = Conversions.decimal_value_to_str(osampling) self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:FILTer:OSAMpling {param}')