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
Sets the start frequency of the combined RF frequency / level sweep. See 'Correlating parameters in sweep mode'.
:return: comb_freq_start: float Range: -59999E5 to 12E9
"""
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
Sets the start frequency of the combined RF frequency / level sweep. See 'Correlating parameters in sweep mode'.
:param comb_freq_start: float Range: -59999E5 to 12E9
"""
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
Sets the end frequency of the combined RF frequency / level sweep.
:return: comb_freq_stop: float Range: -59999E5 to 12E9
"""
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
Sets the end frequency of the combined RF frequency / level sweep.
:param comb_freq_stop: float Range: -59999E5 to 12E9
"""
param = Conversions.decimal_value_to_str(comb_freq_stop)
self._core.io.write(f'SOURce<HwInstance>:COMBined:FREQuency:STOP {param}')