from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MovingCls:
"""
| Commands in total: 5
| Subgroups: 1
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("moving", core, parent)
@property
def delay(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_delay'):
from .Delay import DelayCls
self._delay = DelayCls(self._core, self._cmd_group)
return self._delay
[docs]
def get_loss(self) -> float:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:LOSS`` \n
Snippet: ``value: float = driver.source.cemulation.mdelay.moving.get_loss()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MDELay:MOVing:LOSS?')
return Conversions.str_to_float(response)
[docs]
def set_loss(self, loss: float) -> None:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:LOSS`` \n
Snippet: ``driver.source.cemulation.mdelay.moving.set_loss(loss = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(loss)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MDELay:MOVing:LOSS {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:STATe`` \n
Snippet: ``value: bool = driver.source.cemulation.mdelay.moving.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MDELay:MOVing:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:STATe`` \n
Snippet: ``driver.source.cemulation.mdelay.moving.set_state(state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MDELay:MOVing:STATe {param}')
[docs]
def get_vperiod(self) -> float:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:VPERiod`` \n
Snippet: ``value: float = driver.source.cemulation.mdelay.moving.get_vperiod()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MDELay:MOVing:VPERiod?')
return Conversions.str_to_float(response)
[docs]
def set_vperiod(self, vperiod: float) -> None:
"""
``[SOURce<HW>]:CEMulation:MDELay:MOVing:VPERiod`` \n
Snippet: ``driver.source.cemulation.mdelay.moving.set_vperiod(vperiod = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(vperiod)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:MDELay:MOVing:VPERiod {param}')
def clone(self) -> 'MovingCls':
"""
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 = MovingCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group