from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TimeCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("time", core, parent)
@property
def state(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
[docs]
def get_time(self) -> str:
"""
``[SOURce<HW>]:BB:BTOoth:TRIGger:TIME:TIME`` \n
Snippet: ``value: str = driver.source.bb.btooth.trigger.time.get_time()`` \n
Sets the time for a time-based trigger signal. For trigger modes single or armed auto, you can activate triggering at
this time via the following command: SOURce<hw>:BB:<DigStd>:TRIGger:TIME:STATe <DigStd> is the mnemonic for the digital
standard, for example, ARB. Time-based triggering behaves analogously for all digital standards that support this feature.
:return: time: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:BTOoth:TRIGger:TIME:TIME?')
return trim_str_response(response)
[docs]
def set_time(self, time: str) -> None:
"""
``[SOURce<HW>]:BB:BTOoth:TRIGger:TIME:TIME`` \n
Snippet: ``driver.source.bb.btooth.trigger.time.set_time(time = 'abc')`` \n
Sets the time for a time-based trigger signal. For trigger modes single or armed auto, you can activate triggering at
this time via the following command: SOURce<hw>:BB:<DigStd>:TRIGger:TIME:STATe <DigStd> is the mnemonic for the digital
standard, for example, ARB. Time-based triggering behaves analogously for all digital standards that support this feature.
:param time: string
"""
param = Conversions.value_to_quoted_str(time)
self._core.io.write(f'SOURce<HwInstance>:BB:BTOoth:TRIGger:TIME:TIME {param}')
def clone(self) -> 'TimeCls':
"""
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 = TimeCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group