from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FdopplerCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fdoppler", core, parent)
[docs]
def get_actual(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:TCINterferer:REFerence:FDOPpler:ACTual`` \n
Snippet: ``value: float = driver.source.fsimulator.tcInterferer.reference.fdoppler.get_actual()`` \n
Queries the actual Doppler shift.
:return: act_doppler: float Range: -1600 to 1600
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:TCINterferer:REFerence:FDOPpler:ACTual?')
return Conversions.str_to_float(response)
[docs]
def get_value(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:TCINterferer:REFerence:FDOPpler`` \n
Snippet: ``value: float = driver.source.fsimulator.tcInterferer.reference.fdoppler.get_value()`` \n
Queries the Doppler frequency of the reference and moving path with 2 channel interferer fading.
:return: fdoppler: float Range: 0 to 1000
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:TCINterferer:REFerence:FDOPpler?')
return Conversions.str_to_float(response)