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:TDSCdma:FILTer:OSAMpling:AUTO \n
Snippet: value: bool = driver.source.bb.tdscdma.filterPy.osampling.get_auto() \n
No command help available \n
:return: auto: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:FILTer:OSAMpling:AUTO?')
return Conversions.str_to_bool(response)
[docs] def set_auto(self, auto: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:TDSCdma:FILTer:OSAMpling:AUTO \n
Snippet: driver.source.bb.tdscdma.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:TDSCdma:FILTer:OSAMpling:AUTO {param}')
[docs] def get_value(self) -> int:
"""SCPI: [SOURce<HW>]:BB:TDSCdma:FILTer:OSAMpling \n
Snippet: value: int = driver.source.bb.tdscdma.filterPy.osampling.get_value() \n
No command help available \n
:return: osampling: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:FILTer:OSAMpling?')
return Conversions.str_to_int(response)
[docs] def set_value(self, osampling: int) -> None:
"""SCPI: [SOURce<HW>]:BB:TDSCdma:FILTer:OSAMpling \n
Snippet: driver.source.bb.tdscdma.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:TDSCdma:FILTer:OSAMpling {param}')