from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DistanceCls:
"""Distance commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("distance", core, parent)
[docs] def get_rx(self) -> float:
"""SCPI: [SOURce<HW>]:FSIMulator:MIMO:TGN:ANTenna:DISTance:RX \n
Snippet: value: float = driver.source.fsimulator.mimo.tgn.antenna.distance.get_rx() \n
Sets the RX/TX antenna distance in the SCM fading model. \n
:return: distance_rx: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MIMO:TGN:ANTenna:DISTance:RX?')
return Conversions.str_to_float(response)
[docs] def set_rx(self, distance_rx: float) -> None:
"""SCPI: [SOURce<HW>]:FSIMulator:MIMO:TGN:ANTenna:DISTance:RX \n
Snippet: driver.source.fsimulator.mimo.tgn.antenna.distance.set_rx(distance_rx = 1.0) \n
Sets the RX/TX antenna distance in the SCM fading model. \n
:param distance_rx: float Range: 0.1 to 2
"""
param = Conversions.decimal_value_to_str(distance_rx)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MIMO:TGN:ANTenna:DISTance:RX {param}')
[docs] def get_tx(self) -> float:
"""SCPI: [SOURce<HW>]:FSIMulator:MIMO:TGN:ANTenna:DISTance:TX \n
Snippet: value: float = driver.source.fsimulator.mimo.tgn.antenna.distance.get_tx() \n
Sets the RX/TX antenna distance in the SCM fading model. \n
:return: distance_tx: float Range: 0.1 to 2
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MIMO:TGN:ANTenna:DISTance:TX?')
return Conversions.str_to_float(response)
[docs] def set_tx(self, distance_tx: float) -> None:
"""SCPI: [SOURce<HW>]:FSIMulator:MIMO:TGN:ANTenna:DISTance:TX \n
Snippet: driver.source.fsimulator.mimo.tgn.antenna.distance.set_tx(distance_tx = 1.0) \n
Sets the RX/TX antenna distance in the SCM fading model. \n
:param distance_tx: float Range: 0.1 to 2
"""
param = Conversions.decimal_value_to_str(distance_tx)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MIMO:TGN:ANTenna:DISTance:TX {param}')