from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ZoomCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("zoom", core, parent)
[docs]
def set(self, span: float) -> None:
"""
``[SENSe]:ADEMod:SPECtrum:SPAN:ZOOM`` \n
Snippet: ``driver.sense.ademod.spectrum.span.zoom.set(span = 1.0)`` \n
Sets the span (around the center frequency) for RF spectrum result display. The span is limited to the demodulation
bandwidth (see method ``RsFsw.applications.k17Mcgd.sense.bandwidth.demod.set()`` ) .
:param span: Unit: HZ
"""
param = Conversions.decimal_value_to_str(span)
self._core.io.write(f'SENSe:ADEMod:SPECtrum:SPAN:ZOOM {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:ADEMod:SPECtrum:SPAN:ZOOM`` \n
Snippet: ``value: float = driver.sense.ademod.spectrum.span.zoom.get()`` \n
Sets the span (around the center frequency) for RF spectrum result display. The span is limited to the demodulation
bandwidth (see method ``RsFsw.applications.k17Mcgd.sense.bandwidth.demod.set()`` ) .
:return: span: Unit: HZ
"""
response = self._core.io.query_str(f'SENSe:ADEMod:SPECtrum:SPAN:ZOOM?')
return Conversions.str_to_float(response)