from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EspacingCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("espacing", core, parent)
[docs]
def get_horizontal(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:SCM:ANTenna:TX:ESPacing:HORizontal`` \n
Snippet: ``value: float = driver.source.fsimulator.scm.antenna.tx.espacing.get_horizontal()`` \n
Sets the distance between the antennas in the antenna array.
:return: horizontal: float Range: 0 to 10
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:ANTenna:TX:ESPacing:HORizontal?')
return Conversions.str_to_float(response)
[docs]
def set_horizontal(self, horizontal: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:SCM:ANTenna:TX:ESPacing:HORizontal`` \n
Snippet: ``driver.source.fsimulator.scm.antenna.tx.espacing.set_horizontal(horizontal = 1.0)`` \n
Sets the distance between the antennas in the antenna array.
:param horizontal: float Range: 0 to 10
"""
param = Conversions.decimal_value_to_str(horizontal)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:ANTenna:TX:ESPacing:HORizontal {param}')
[docs]
def get_vertical(self) -> float:
"""
``[SOURce<HW>]:FSIMulator:SCM:ANTenna:TX:ESPacing:VERTical`` \n
Snippet: ``value: float = driver.source.fsimulator.scm.antenna.tx.espacing.get_vertical()`` \n
Sets the distance between the antennas in the antenna array.
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:ANTenna:TX:ESPacing:VERTical?')
return Conversions.str_to_float(response)
[docs]
def set_vertical(self, ant_tx_spac_vertical: float) -> None:
"""
``[SOURce<HW>]:FSIMulator:SCM:ANTenna:TX:ESPacing:VERTical`` \n
Snippet: ``driver.source.fsimulator.scm.antenna.tx.espacing.set_vertical(ant_tx_spac_vertical = 1.0)`` \n
Sets the distance between the antennas in the antenna array.
:param ant_tx_spac_vertical: float Range: 0 to 10
"""
param = Conversions.decimal_value_to_str(ant_tx_spac_vertical)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:ANTenna:TX:ESPacing:VERTical {param}')