from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class OstreamsCls:
"""
| Commands in total: 4
| Subgroups: 1
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ostreams", core, parent)
@property
def output(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_output'):
from .Output import OutputCls
self._output = OutputCls(self._core, self._cmd_group)
return self._output
[docs]
def get_conflict(self) -> bool:
"""
``[SOURce<HW>]:BB:GNSS:OSTReams:CONFlict`` \n
Snippet: ``value: bool = driver.source.bb.gnss.ostreams.get_conflict()`` \n
Indicates stream-specific and general signal generation conflicts in the GNSS output streams configuration.
:return: conflict_status: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:CONFlict?')
return Conversions.str_to_bool(response)
[docs]
def get_count(self) -> int:
"""
``[SOURce<HW>]:BB:GNSS:OSTReams:COUNt`` \n
Snippet: ``value: int = driver.source.bb.gnss.ostreams.get_count()`` \n
Sets the number of GNSS streams.
:return: output_streams: 1 | 2| 3 | 4| 5 | 6 Range: 1 to 4
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt?')
return Conversions.str_to_int(response)
[docs]
def set_count(self, output_streams: int) -> None:
"""
``[SOURce<HW>]:BB:GNSS:OSTReams:COUNt`` \n
Snippet: ``driver.source.bb.gnss.ostreams.set_count(output_streams = 1)`` \n
Sets the number of GNSS streams.
:param output_streams: 1 | 2| 3 | 4| 5 | 6 Range: 1 to 4
"""
param = Conversions.decimal_value_to_str(output_streams)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt {param}')
[docs]
def get_lock(self) -> bool:
"""
``[SOURce<HW>]:BB:GNSS:OSTReams:LOCK`` \n
Snippet: ``value: bool = driver.source.bb.gnss.ostreams.get_lock()`` \n
Locks the output streams mapping configuration.
:return: lock_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:LOCK?')
return Conversions.str_to_bool(response)
[docs]
def set_lock(self, lock_state: bool) -> None:
"""
``[SOURce<HW>]:BB:GNSS:OSTReams:LOCK`` \n
Snippet: ``driver.source.bb.gnss.ostreams.set_lock(lock_state = False)`` \n
Locks the output streams mapping configuration.
:param lock_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(lock_state)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:OSTReams:LOCK {param}')
def clone(self) -> 'OstreamsCls':
"""
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 = OstreamsCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group