from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class OstreamsCls:
"""Ostreams commands group definition. 4 total commands, 1 Subgroups, 3 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ostreams", core, parent)
@property
def output(self):
"""output commands group. 0 Sub-classes, 1 commands."""
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:
"""SCPI: [SOURce<HW>]:BB:GNSS:OSTReams:CONFlict \n
Snippet: value: bool = driver.source.bb.gnss.ostreams.get_conflict() \n
No command help available \n
:return: conflict_status: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:CONFlict?')
return Conversions.str_to_bool(response)
# noinspection PyTypeChecker
[docs] def get_count(self) -> enums.NumberA:
"""SCPI: [SOURce<HW>]:BB:GNSS:OSTReams:COUNt \n
Snippet: value: enums.NumberA = driver.source.bb.gnss.ostreams.get_count() \n
No command help available \n
:return: output_streams: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt?')
return Conversions.str_to_scalar_enum(response, enums.NumberA)
[docs] def set_count(self, output_streams: enums.NumberA) -> None:
"""SCPI: [SOURce<HW>]:BB:GNSS:OSTReams:COUNt \n
Snippet: driver.source.bb.gnss.ostreams.set_count(output_streams = enums.NumberA._1) \n
No command help available \n
:param output_streams: No help available
"""
param = Conversions.enum_scalar_to_str(output_streams, enums.NumberA)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:OSTReams:COUNt {param}')
[docs] def get_lock(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:GNSS:OSTReams:LOCK \n
Snippet: value: bool = driver.source.bb.gnss.ostreams.get_lock() \n
No command help available \n
:return: lock_state: No help available
"""
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:
"""SCPI: [SOURce<HW>]:BB:GNSS:OSTReams:LOCK \n
Snippet: driver.source.bb.gnss.ostreams.set_lock(lock_state = False) \n
No command help available \n
:param lock_state: No help available
"""
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