from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FrequencyCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("frequency", core, parent)
[docs]
def get_start(self) -> float:
"""
``[SOURce<HW>]:COMBined:FREQuency:STARt`` \n
Snippet: ``value: float = driver.source.combined.frequency.get_start()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:COMBined:FREQuency:STARt?')
return Conversions.str_to_float(response)
[docs]
def set_start(self, comb_freq_start: float) -> None:
"""
``[SOURce<HW>]:COMBined:FREQuency:STARt`` \n
Snippet: ``driver.source.combined.frequency.set_start(comb_freq_start = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(comb_freq_start)
self._core.io.write(f'SOURce<HwInstance>:COMBined:FREQuency:STARt {param}')
[docs]
def get_stop(self) -> float:
"""
``[SOURce<HW>]:COMBined:FREQuency:STOP`` \n
Snippet: ``value: float = driver.source.combined.frequency.get_stop()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:COMBined:FREQuency:STOP?')
return Conversions.str_to_float(response)
[docs]
def set_stop(self, comb_freq_stop: float) -> None:
"""
``[SOURce<HW>]:COMBined:FREQuency:STOP`` \n
Snippet: ``driver.source.combined.frequency.set_stop(comb_freq_stop = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(comb_freq_stop)
self._core.io.write(f'SOURce<HwInstance>:COMBined:FREQuency:STOP {param}')