from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SymbolRateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("symbolRate", core, parent)
[docs]
def set(self, symbol_rate: float) -> None:
"""
``[SENSe]:DDEMod:SRATe`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.symbolRate.set(symbol_rate = 1.0)`` \n
Defines the symbol rate. The minimum symbol rate is 25 Hz. The maximum symbol rate depends on the defined 'Sample Rate'
(see 'Sample rate, symbol rate and I/Q bandwidth') .
:param symbol_rate: Range: 25 to 250e6, Unit: HZ
"""
param = Conversions.decimal_value_to_str(symbol_rate)
self._core.io.write(f'SENSe:DDEMod:SRATe {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:DDEMod:SRATe`` \n
Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.symbolRate.get()`` \n
Defines the symbol rate. The minimum symbol rate is 25 Hz. The maximum symbol rate depends on the defined 'Sample Rate'
(see 'Sample rate, symbol rate and I/Q bandwidth') .
:return: symbol_rate: Range: 25 to 250e6, Unit: HZ
"""
response = self._core.io.query_str(f'SENSe:DDEMod:SRATe?')
return Conversions.str_to_float(response)