from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ScmCls:
"""
| Commands in total: 53
| Subgroups: 5
| Direct child commands: 5
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("scm", core, parent)
@property
def antenna(self):
"""
| Commands in total: 16
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_antenna'):
from .Antenna import AntennaCls
self._antenna = AntennaCls(self._core, self._cmd_group)
return self._antenna
@property
def d3Mode(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_d3Mode'):
from .D3Mode import D3ModeCls
self._d3Mode = D3ModeCls(self._core, self._cmd_group)
return self._d3Mode
@property
def los(self):
"""
| Commands in total: 12
| Subgroups: 3
| Direct child commands: 3
"""
if not hasattr(self, '_los'):
from .Los import LosCls
self._los = LosCls(self._core, self._cmd_group)
return self._los
@property
def polarization(self):
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_polarization'):
from .Polarization import PolarizationCls
self._polarization = PolarizationCls(self._core, self._cmd_group)
return self._polarization
@property
def tap(self):
"""
| Commands in total: 16
| Subgroups: 5
| Direct child commands: 0
"""
if not hasattr(self, '_tap'):
from .Tap import TapCls
self._tap = TapCls(self._core, self._cmd_group)
return self._tap
[docs]
def get_dot(self) -> float:
"""
``[SOURce<HW>]:CEMulation:SCM:DOT`` \n
Snippet: ``value: float = driver.source.cemulation.scm.get_dot()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:SCM:DOT?')
return Conversions.str_to_float(response)
[docs]
def set_dot(self, dir_of_travel: float) -> None:
"""
``[SOURce<HW>]:CEMulation:SCM:DOT`` \n
Snippet: ``driver.source.cemulation.scm.set_dot(dir_of_travel = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(dir_of_travel)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:SCM:DOT {param}')
[docs]
def get_phi(self) -> float:
"""
``[SOURce<HW>]:CEMulation:SCM:PHI`` \n
Snippet: ``value: float = driver.source.cemulation.scm.get_phi()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:SCM:PHI?')
return Conversions.str_to_float(response)
[docs]
def set_phi(self, scm_phi: float) -> None:
"""
``[SOURce<HW>]:CEMulation:SCM:PHI`` \n
Snippet: ``driver.source.cemulation.scm.set_phi(scm_phi = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(scm_phi)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:SCM:PHI {param}')
[docs]
def get_sigma(self) -> float:
"""
``[SOURce<HW>]:CEMulation:SCM:SIGMa`` \n
Snippet: ``value: float = driver.source.cemulation.scm.get_sigma()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:SCM:SIGMa?')
return Conversions.str_to_float(response)
[docs]
def set_sigma(self, sigma: float) -> None:
"""
``[SOURce<HW>]:CEMulation:SCM:SIGMa`` \n
Snippet: ``driver.source.cemulation.scm.set_sigma(sigma = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(sigma)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:SCM:SIGMa {param}')
[docs]
def get_speed(self) -> float:
"""
``[SOURce<HW>]:CEMulation:SCM:SPEed`` \n
Snippet: ``value: float = driver.source.cemulation.scm.get_speed()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:SCM:SPEed?')
return Conversions.str_to_float(response)
[docs]
def set_speed(self, speed: float) -> None:
"""
``[SOURce<HW>]:CEMulation:SCM:SPEed`` \n
Snippet: ``driver.source.cemulation.scm.set_speed(speed = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(speed)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:SCM:SPEed {param}')
[docs]
def get_theta(self) -> float:
"""
``[SOURce<HW>]:CEMulation:SCM:THETa`` \n
Snippet: ``value: float = driver.source.cemulation.scm.get_theta()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:SCM:THETa?')
return Conversions.str_to_float(response)
[docs]
def set_theta(self, scm_theta: float) -> None:
"""
``[SOURce<HW>]:CEMulation:SCM:THETa`` \n
Snippet: ``driver.source.cemulation.scm.set_theta(scm_theta = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(scm_theta)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:SCM:THETa {param}')
def clone(self) -> 'ScmCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = ScmCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group