from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CosineCls:
"""Cosine commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cosine", core, parent)
[docs] def get_cofs(self) -> float:
"""SCPI: [SOURce<HW>]:BB:DAB:FILTer:PARameter:COSine:COFS \n
Snippet: value: float = driver.source.bb.dab.filterPy.parameter.cosine.get_cofs() \n
No command help available \n
:return: cofs: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:FILTer:PARameter:COSine:COFS?')
return Conversions.str_to_float(response)
[docs] def set_cofs(self, cofs: float) -> None:
"""SCPI: [SOURce<HW>]:BB:DAB:FILTer:PARameter:COSine:COFS \n
Snippet: driver.source.bb.dab.filterPy.parameter.cosine.set_cofs(cofs = 1.0) \n
No command help available \n
:param cofs: No help available
"""
param = Conversions.decimal_value_to_str(cofs)
self._core.io.write(f'SOURce<HwInstance>:BB:DAB:FILTer:PARameter:COSine:COFS {param}')
[docs] def get_value(self) -> float:
"""SCPI: [SOURce<HW>]:BB:DAB:FILTer:PARameter:COSine \n
Snippet: value: float = driver.source.bb.dab.filterPy.parameter.cosine.get_value() \n
No command help available \n
:return: cosine: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DAB:FILTer:PARameter:COSine?')
return Conversions.str_to_float(response)
[docs] def set_value(self, cosine: float) -> None:
"""SCPI: [SOURce<HW>]:BB:DAB:FILTer:PARameter:COSine \n
Snippet: driver.source.bb.dab.filterPy.parameter.cosine.set_value(cosine = 1.0) \n
No command help available \n
:param cosine: No help available
"""
param = Conversions.decimal_value_to_str(cosine)
self._core.io.write(f'SOURce<HwInstance>:BB:DAB:FILTer:PARameter:COSine {param}')